Week 5: Links Flashcards

1
Q

What is the difference between a hard link and a soft link?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the command to add a link to a file and what is its format?

A

ln

ln readme.txt unix_is_easy

creates a hard link to readme.txt called unix_is_easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the flag for making a hard link vs making a soft link?

A

A hard link requires no flag, it is the automatic option with the ln command.

To create a soft link, use the -s option:

ln -s file.txt link_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly