Week 5: Links Flashcards
1
Q
What is the difference between a hard link and a soft link?
A
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
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