Workbook 5: The Linux Filesystem: Chapter 2: Hard and Soft Links Flashcards

1
Q

What is a hard link and why would you create one?

A

A hard link is a link to file

Linux users want the same file to exist two separate places [17]

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

What would happen if you deleted a hard link

A

is not said to delete a file, but “unlink” it

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

What does the hard link look like in a directory listing?

A

It have the two dentry from the owner and other users linked to one inode and data

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

What is a soft (a.k.a. symbolic) link?

A

assigning a single file two names is called a soft link [19]

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

Give a command line that creates the soft link today.todo so that it refers to tuesday.todo.

A

ln -s today.todo tuesday.todo

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