Linux Ch. 3&4 Test

24 July 2022
4.7 (114 reviews)
30 test answers

Unlock all answers in this set

Unlock answers (26)
question
It is acceptable to use shell metacharacters when naming files. (true/false)
answer
false
question
Pressing the Esc key at the prompt while using the more command displays a help screen. (true/false)
answer
false
question
The more command should not be used on binary files. (true/false)
answer
true
question
The command "strings /bin/echo" displays the binary characters inside the /bin/echo binary executable program. (true/false)
answer
false
question
The ____ command will confirm the system directory that you are currently in. a. dir c. whereami b. pwd d. ld
answer
b. pwd
question
The ____ metacharacter can also be used to refer to the current user's home directory. a. ~ c. & b. @ d. #
answer
a. ~
question
To move from the /home/joe/test/data to the /home/joe directory, use the ____ command. a. cd .. c. /home/joe b. cd ../.. d. cd ./..
answer
b. cd ../..
question
If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or directory being specified and fill in the appropriate information. a. Alt c. Ctrl b. Tab d. Esc
answer
b. Tab
question
Most files on a Linux system that contain configuration information are ____ files. a. system c. text b. directory d. program
answer
c. text
question
To view a list of files and their type, use the ____ switch to the ls command. a. -T c. -F b. -L d. -l
answer
c. -F
question
The ____ symbol indicates a linked file. a. @ c. & b. * d. =
answer
a. @
question
The ____ command can be used to provide a long listing for each file in a certain directory. a. ls -T c. ls -F b. ls -L d. ls -l
answer
d. ls -l
question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4? a. 1-4 c. [1234] b. [1-4] d. [1,2,3,4]
answer
b. [1-4]
question
To display the contents of a file called data, use the command ____. a. disp data c. ls -l data b. ls data d. cat data
answer
d. cat data
question
The ____ command displays the last five lines of a text file. a. end -5 c. stop -5 b. head -5 d. tail -5
answer
d. tail -5
question
Which is an extended regular expression metacharacter? a. . c. ^ b. [...] d. {}
answer
d. {}
question
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character. a. * c. + b. ? d. ^
answer
a. *
question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? a. $ c. Ctrl+g b. x d. P
answer
c. Ctrl+g
question
The ____ can be used with LISP artificial intelligence programming language and supports hundreds of keyboard functions like the vi editor. a. Kedit editor c. Emacs editor b. Mcedit editor d. Nedit editor
answer
c. Emacs editor
question
The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors. a. XEmacs c. Emacs b. vi d. gedit
answer
d. gedit
question
To display the line number of each line in a file, in addition to its contents, would you use the cat -n command?
answer
Yes
question
When using the less command, can you use the cursor keys on the keyboard to scroll up and down the contents of the file?
answer
Yes
question
To perform a case-insensitive grep search, would you use the -a option to the grep command?
answer
No
question
Is vim the Linux equivalent of vi?
answer
Yes
question
Is the graphical Emacs editor harder to use than the Emacs editor?
answer
No
question
When a user logs into their Linux system, he is placed in the _____ directory.
answer
home
question
The file .file.dat is an example of a _____ file.
answer
hidden
question
In a file listing, the 9 characters following the file type (ie. -rwxr-xr-x) refer to the file's _____.
answer
permissions
question
Text wildcards used to ease the searching of specific text information are called _____.
answer
regular expressions
question
An alternative to the vi editor that offers an equal set of functionality is the GNU _____ editor.
answer
Emacs