Skip to content
Snippets Groups Projects
Commit 74a3fc57 authored by ndomassi.tando_ird.fr's avatar ndomassi.tando_ird.fr
Browse files

modif exercice liens symboliques avec data

parent 48c6f271
No related branches found
No related tags found
No related merge requests found
Pipeline #40259 passed
......@@ -233,26 +233,26 @@ ln -s existing_file [soft_link_name]
```
!!! Exercice
Create a Soft link of the `script` folder
Create a Soft link of the `data` folder called `data`in the `analysis`folder
??? example "Click to show the solution"
```ln -s ../script```
```ln -s /home/<user_name>/training_unix_basics/data data```
Run `ls -l`. What do you see?
??? example "Click to show the solution"
There is an extra arrow showing to what file my link point to.
Create a Soft link of the `script/script1.sh` file and run again `ls -l`
Create a Soft link of the `script/script1.sh` file called `script1.sh` and run again `ls -l`
??? example "Click to show the solution"
```bash
ln -s ../data/data1.fa
ln -s ../script/script1.sh script1.sh
ls -l
```
To remove links you can use `rm` like for files or the dedicated `unlink` command (the only difference is that unlink cannot remove directories).
!!! question "Remove the links we set: `script`, `script1.sh`"
!!! question "Remove the links we set: `data`, `script1.sh`"
??? example "Click to show the solution"
```bash
rm script script1.sh
rm data script1.sh
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment