5.4 Special Directories and Files Flashcards

1
Q

Special Directories

where are temp files stored

A

/tmp

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

Special Directories

temp directory that must be cleared during the boot process

A

/run

/var/run

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

Special Characters

parameter for chmod in symbolic mode to enable the sticky bit on a directory

A

The symbol for the sticky bit in symbolic mode is t. Since we want to enable (add) this
permission to the directory, the parameter should be +t

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

Special Characters

Imagine there is a file named document.txt on the directory /home/carol/Documents. What
is the command to create a symbolic link to it named text.txt in the current directory?

A

ln -s is the command to create a symbolic link.

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

Special Characters

another name for a file. Even though it looks like a duplicate of the original
file, for all purposes both the link and the original are the same, as they point to the same data
on disk. Changes made to the contents of the link will be reflected on the original, and viceversa

A

hard link

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

Special Characters

a completely independent entity, occupying a different place on disk. Changes
to the copy will not be reflected on the original, and vice-versa

A

copy

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