Linux Chapter 3: Exploring Linux Filesystems

​At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?
a. ​:q!
b. ​:!
c. :exit
d. :q
:q!
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
Emacs (Editor MACroS) editor
Due to the fact that the * character can be used to match all ​characters in a filename, or all files in a directory, it is referred to as a ____________ metacharacter.
Wildcard
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell’s completion feature?
a. Tab
b. Ctrl
c. Alt
d. Esc
Tab
Filenames that start with a period, such as .file, are referred to as
Hidden Files
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file’s
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
a. cd ..
b. /home/joe
c. cd ./..
d. cd ../..
cd ../..
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?​
a. ​Ctrl+k
b. ​dd
c. ​Ctrl+a
d. ​Ctrl+d
Ctrl+k
In vi, using command mode, what ​series of key presses below will cause the line on which the cursor is on to be deleted?
a. ​yw
b. ​dd
c. ​d
d. ​X
dd
In what mode does the vi editor open by default?​
a. ​command mode
b. ​overview mode
c. ​insert mode
d. append mode
command mode
Select the command below that can be used to provide a long listing for each file in a directory:
-l
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
a. +
b. ^
c. ?
d. *
*
Text wildcards used to ease the searching of specific text information are called _________________________.
Regular expressions (regexp)
The LISP artificial intelligence programming language can be used with which text editor below?
a. Kedit editor
b. Nedit editor
c. Joe editor
d. Emacs editor
Emacs editor
To display a text file in reverse order, what command should be used?​
a. tee
b. ​tac
c. ​cat
d. ​sed
tac
To display the contents of a text file called data, what command should be used?
cat data
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
[1-4]
What command can be issued to confirm what directory you are in at a command line prompt?
pwd
What command can be used to display the last five lines of a text file?
tail -5
What command is most effective at identifying different types of files?​
File
What metacharacter can be used to refer to the current user’s home directory?
~
When issuing the ls -F command, what special character indicates a linked file?
@
Which character(s) below represent extended regular expression metacharacter(s)?
{}
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
Ctrl +g
Which switch below can be added to the ls command to show a list of files and their type?
-F