Workbook 2 Filesystem Basics: Chapter 4 Managing Directories Flashcards
Give a command line that creates a directory named work
mkdir work [33]
Give a command line that creates two directories whose names are work and play
mkdir work play [33]
Give a command line that creates the directory homework/linux, assuming that the homework
directory did not exist.
mkdir homework/linux [33]
True or false?
The following command line recursively lists a directory’s contents. ls -r
False!!!
Must be the upper case -R[34]
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
False!!!
somdir must be empty [34]
Assuming that you have sufficient privileges, how do you use the rm command to remove the
homework/linux directory?
rm -r [37]
What command outputs an ASCII directory tree?
tree /etc/NetworkManager/ [38]
Referring to the previous question, what command option that outputs only directories?
ls -d [38]