Create and change hard and symbolic links Flashcards
1
Q
What is mean’t by file type code l?
A
symbolic link
2
Q
What command will create a link to a file?
A
ln
3
Q
What command will make a smybolic link to a file?
A
ln -s –symbolic
4
Q
What column in list shows the number of links to a file?
A
second
5
Q
How would you find hardlinks to a file?
A
find dir_to_search -samefile path_to_file
6
Q
How would you find softlinks to a file?
A
find dir_to_search -lname file_name
7
Q
How to find hardlinks to a file with the inode number?
A
find dir_to_search -inum inode_number
8
Q
What are three reasons links are often used in system administration?
A
- Commands can remain the same but the underlying version can change.
- Mulitple commands might use the same code.
- Library links can reamin the same but the underlying version can change.