Linux Ch. 3&4 Test
To view a list of files and their type, use the ____ switch to the ls command. a. -T c. -F b. -L d. -l
c. -F
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
c. Ctrl+g
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
c. Emacs editor
Is vim the Linux equivalent of vi?
Yes
To display the line number of each line in a file, in addition to its contents, would you use the cat -n command?
Yes
When using the less command, can you use the cursor keys on the keyboard to scroll up and down the contents of the file?
Yes
Is the graphical Emacs editor harder to use than the Emacs editor?
No
To perform a case-insensitive grep search, would you use the -a option to the grep command?
No
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character. a. * c. + b. ? d. ^
a. *
The ____ symbol indicates a linked file. a. @ c. & b. * d. =
a. @
The ____ metacharacter can also be used to refer to the current user's home directory. a. ~ c. & b. @ d. #
a. ~
The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors. a. XEmacs c. Emacs b. vi d. gedit
d. gedit
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
d. ls -l
The ____ command displays the last five lines of a text file. a. end -5 c. stop -5 b. head -5 d. tail -5
d. tail -5
Which is an extended regular expression metacharacter? a. . c. ^ b. [...] d. {}
d. {}
In a file listing, the 9 characters following the file type (ie. -rwxr-xr-x) refer to the file's _____.
permissions
An alternative to the vi editor that offers an equal set of functionality is the GNU _____ editor.
Emacs
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
b. Tab
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]
b. [1-4]
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 ./..
b. cd ../..
The ____ command will confirm the system directory that you are currently in. a. dir c. whereami b. pwd d. ld
b. pwd
Most files on a Linux system that contain configuration information are ____ files. a. system c. text b. directory d. program
c. text
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
d. cat data
It is acceptable to use shell metacharacters when naming files. (true/false)
false
Pressing the Esc key at the prompt while using the more command displays a help screen. (true/false)
false
The command "strings /bin/echo" displays the binary characters inside the /bin/echo binary executable program. (true/false)
false
The file .file.dat is an example of a _____ file.
hidden
When a user logs into their Linux system, he is placed in the _____ directory.
home
Text wildcards used to ease the searching of specific text information are called _____.
regular expressions
The more command should not be used on binary files. (true/false)
true