Chapters 6 & 7 Linux/Virtualization
What symbol do you place after a command to run the program in the background?
&
You want to copy a set of files but be prompted before cp overwrites any existing files. You would use the ___ option to cp to accomplish this goal.
-i
To create a listing of the file afile.txt in the directory one level above the current one, you would type ls _________afile.txt.
../
You type touch afile.txt in a directory that contains no files. What will be the effect?
A new empty file called afile.txt will be created in the current directory.
True or false: To run a GUI program in Linux, you must launch it from a desktop environment's menus.
False
True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files in the current directory.
False
True or false: You can delete any file on the computer by using rm as an ordinary user.
False
True or false: info pages have largely replaced man pages as the most common form of documentation for Linux programs.
False
The ________ command searches a database of filenames for the name or name fragment that you specify.
Locate
How can you browse to a new node using the standard info documentation reader?
Select a link using the arrow keys and then press the Enter key.
True or false: Pressing the up arrow key in Bash reveals commands you've recently typed.
True
True or false: With most distributions, USB flash drives, and other removable media appear in subdirectories of /media.
True
The files afile.txt and AFile.TXT can both exist on a Linux filesystem because Linux treats filenames in a ____________ way.
case sensitive
You want to copy the contents of the ~/important directory, including all its subdirectories, to /media/usb. What command can you type to accomplish this goal?
cp -R ~/important /media/usb
To view all your recent commands in the command history, type in the command __________.
history
Which of the following commands is equivalent to typing apropos keyword?
man -k keyword
You want to create a directory called ~/Documents/papers, but you're not sure that the ~/Documents directory exists. What command can you type to create the desired directory and its parent directory if it doesn't already exist?
mkdir -p ~/Documents/papers
Which of the following commands displays the name of the directory in which you're working?
pwd
To search all man pages' Name sections for the keyword less, you would type ______________ less.
whatis
The ____________ command searches a limited set of directories for a designated file.
whereis