File and directory management 3–45
8 True or false? The * wildcard represents any single character.
False. It represents one or more characters.
9 The vi editor has two operational modes: _______ and _______.
10 True or false? Inodes are sort of database entries that store information about
directories, including user and group ownership, permissions, and so forth.
False. Inodes store such information about files.
11 What is a symbolic link?
A symbolic, or soft, link is essentially a pointer or reference to an actual file.
12 Conceptually, a file name in Linux is simply a cross-reference between a file’s
name and its _______.
13 What option(s) do you add to the ls command to display file type information?
Add the -F option at minimum, though adding the -l option displays additional file information.
14 True or false? Files in a directory to which you mount a volume are deleted.
False. Those files are simply hidden until you unmount the volume.
15 When unmounting a file system, which do you provide as an argument, the device
file name or the mount point name?
You can specify either.
16 The preferred command for privilege escalation is _______.
Independent practice activity
1 Use vi to edit myvifile. Delete the word “brown” that comes before “dog,” so that
the text reads, “…over the lazy dog.” Using the command key sequence, delete the
first line of text. Delete the second line. Enter this new text, “The five boxing
wizards jump quickly.” Use the command key sequence to quit without saving. Use
the cat command to confirm that the file contains its original text.
2 Plug a USB drive into an available port on your computer. If necessary, mount the
tee or touch to create a file on the drive. Display the file’s contents.
Unmount and disconnect the USB drive.
3 Work at the command prompt to create a directory in your home folder. In that
touch to create four empty files named ipa1, ipa2, ipa123, and
ipa234. Determine the appropriate wildcards to use with
ls to list ipa1 and ipa123
but not the other files. Use those same wildcards with the
rm command to delete just
those two files. Confirm that the other files exist. Delete the remaining files and the