Chapter 3 Flashcards
A directory is a type of file. True or False?
True
Which command would a user type
on the command line to find out the
current directory in the directory tree?
pwd
Which of the following is an absolute pathname? (Choose all that apply.) a. Home/resume b. C:\myfolder\resume c. resume d. /home/resume e. C:home/resume
B
A special device file is used to _________.
represent hardware devices such as
hard disk drives and ports
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
After typing the ls –a command, you
notice a file whose filename begins with
a dot ( . ). What does this mean?
Hidden file
After typing the ls –F command,
you notice a filename that ends with an
* (asterisk) character. What does this
mean?
Executable
The vi editor can function in which two of the following modes? (Choose both that apply.) a. text b. command c. input d. interactive e. insert
b command, e insert
The less command offers less
functionality than the more command.
True or False?
False
Which command searches for and
displays any text contents of a binary
file?
strings
How can a user switch from insert mode
to command mode when using the vi
editor?
esc key
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
What will the following wildcard regular
expression return: file[a-c]?
filea fileb filec
What will typing q! at the : prompt in
command mode do when using the vi
editor?
quit without saving
A user types the command head /
poems/mary. What will be displayed on
the terminal screen?
first 10 lines of mary