Create and change hard and symbolic links Flashcards

1
Q

What is mean’t by file type code l?

A

symbolic link

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

What command will create a link to a file?

A

ln

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

What command will make a smybolic link to a file?

A

ln -s –symbolic

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

What column in list shows the number of links to a file?

A

second

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

How would you find hardlinks to a file?

A

find dir_to_search -samefile path_to_file

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

How would you find softlinks to a file?

A

find dir_to_search -lname file_name

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

How to find hardlinks to a file with the inode number?

A

find dir_to_search -inum inode_number

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

What are three reasons links are often used in system administration?

A
  1. Commands can remain the same but the underlying version can change.
  2. Mulitple commands might use the same code.
  3. Library links can reamin the same but the underlying version can change.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly