104.6 Create and change hard and symbolic links Flashcards

1
Q

What is the type of link that will only work on the FS of the originating file?

A

A hard link

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

What is the type of link that can traverse different file systems?

A

A symbolic/soft link

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

What is a link, basically?

A

It is a shortcut to a directory or a file.

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

What is the command to create a hard link to a file or a directory?

A

ln

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

What is the command to create a symbolic or soft link to a file or a directory?

A

ln -s

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

From the output of #ls -l , how can you tell a file is a link?

A

You will see an L at the beginning of the listing for that file in the file descriptor field.

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

What happens if you edit the original file or the symbolic linked file?

A

They both carry over the change.

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

What happens to a soft linked file if you move the original file from its location?

A

The soft symbolic link gets broken.

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