Quiz 3
What will the following wildcard regular expression return: file[a-c]?
Filea, Fileb, Filec
Which command searches for and displays any text contents of a binary file?
strings
A directory is a type of file.
True
Which command would a user type on the command line to find out what directory in the directory tree he is currently in?
pwd
What will typing q! at the : prompt in command mode do when using the vi editor?
quit without saving changes
A special device file is used to represent what?
Hardware devices such as hard disk drives and ports
A user types in the command head /poems/mary. What will be displayed to the terminal screen?
The first 10 lines of the file "mary"
If a user's current directory is /home/mary/project1, which command could she use to move to the etc directory directly under the root?
cd /etc
Which of the following is an absolute pathname? - Home/resume - resume - /home/resume - C:\myfolder\resume - C:home/resume
/home/resume
The less command offers less functionality than the more command.
False
How can a user switch from insert mode to command mode when using the vi editor?
using the "esc" key
The vi editor can function in which two of the following modes?
Insert, Command
After typing the ls -a command, you notice that there is a file whose filename begins with a dot ( . ). What does this mean?
It's a hidden file
After typing the ls -F command, you notice a filename that ends with an * asterisk character. What does this mean?
It's an executable file
If resume is the name of a file in the home directory off the root of the filesystem and your present working directory is home, what is the relative name for the file named resume?
resume