Quiz 3 Flashcards

1
Q

Under which directory would you expect to find nonessential program files?

A

/usr

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

Under which directory would you expect to find log files?

A

/var

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

Which of the following directories would typically not be mounted on its own dedicated device?

A

/etc

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

Which of the following commands would give the most accurate overview of mounted disk devices (without showing much information about mounted system devices as well)?

A

df -hT

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

Which command enables you to show all files in the current directory so that the newest files are listed last?

A

ls -alrt

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

Which command enables you to copy hidden files as well as regular files from /home/$USER to the current directory?

A

cp -a /home/$USER/. .

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

Which command enables you to rename the file myfile to mynewfile?

A

mv myfile mynewfile

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

Which statement about hard links is not true?
a. Hard links cannot be created to directories.
b. Hard links cannot refer to files on other devices.
c. The inode keeps a hard link counter.
d. If the original hard link is removed, all other hard links become invalid

A

d. If the original hard link is removed, all other hard links become invalid.

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

Which command creates a symbolic link to the directory /home in the directory /tmp?

A

ln -s /home /tmp

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

Which tar option enables you to add one single file to a tar archive?

A

-r

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