nos120 - quiz 3
When issuing the ls -F command, what special character indicates a linked file?
@
When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line?
I (lowercase i changes insert mode and places the cursor before the current character to insert new text)
After typing the ls -a command, you notice a file whose filename begins with a dot ( . ). What does this mean?
It is a hidden file.
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
Tab
Using wildcard metacharacters, how can you indicate a character that is NOT an a or b or c or d?
[!a-d]
A user typed in the command pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory?
cd ../..
In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued?
cd ../..
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
What will the following wildcard regular expression return: file[a-c]
filea, fileb, filec
Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.)
grep -F and fgrep
What command is most effective at identifying different types of files?
ls -l (file command was incorrect)
Which command would a user type on the command line to find out the current directory in the directory tree?
pwd
A special device file is used to -- ?
represent hardware devices such as hard disk drives and ports
Which command searches for and displays any text contents of a binary file?
strings
What command can be used to display the last five lines of a text file?
tail -5