Workbook 2 Filesystem Basics: Chapter 4 Managing Directories Flashcards

1
Q

Give a command line that creates a directory named work

A

mkdir work [33]

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

Give a command line that creates two directories whose names are work and play

A

mkdir work play [33]

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

Give a command line that creates the directory homework/linux, assuming that the homework
directory did not exist.

A

mkdir homework/linux [33]

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

True or false?

The following command line recursively lists a directory’s contents. ls -r

A

False!!!

Must be the upper case -R[34]

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

True or false?
Assuming that you have sufficient privileges and that somedir is a directory, the following command line will always remove that directory. rmdir somedir

A

False!!!

somdir must be empty [34]

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

Assuming that you have sufficient privileges, how do you use the rm command to remove the
homework/linux directory?

A

rm -r [37]

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

What command outputs an ASCII directory tree?

A

tree /etc/NetworkManager/ [38]

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

Referring to the previous question, what command option that outputs only directories?

A

ls -d [38]

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