Linux Chapter 3: Exploring Linux Filesystems

Unlock all answers in this set

Unlock answers
question
?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
answer
:q!
question
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
answer
Emacs (Editor MACroS) editor
question
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.
answer
Wildcard
question
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
answer
Tab
question
Filenames that start with a period, such as .file, are referred to as
answer
Hidden Files
question
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 ../..
answer
cd ../..
question
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
answer
Ctrl+k
question
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
answer
dd
question
In what mode does the vi editor open by default?? a. ?command mode b. ?overview mode c. ?insert mode d. append mode
answer
command mode
question
Select the command below that can be used to provide a long listing for each file in a directory:
answer
-l
question
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character. a. + b. ^ c. ? d. *
answer
*
question
Text wildcards used to ease the searching of specific text information are called _________________________.
answer
Regular expressions (regexp)
question
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
answer
Emacs editor
question
To display a text file in reverse order, what command should be used?? a. tee b. ?tac c. ?cat d. ?sed
answer
tac
question
To display the contents of a text file called data, what command should be used?
answer
cat data
question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
answer
[1-4]
question
What command can be issued to confirm what directory you are in at a command line prompt?
answer
pwd
question
What command can be used to display the last five lines of a text file?
answer
tail -5
question
What command is most effective at identifying different types of files??
answer
File
question
What metacharacter can be used to refer to the current user's home directory?
answer
~
question
When issuing the ls -F command, what special character indicates a linked file?
answer
@
question
Which character(s) below represent extended regular expression metacharacter(s)?
answer
{}
question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
answer
Ctrl +g
question
Which switch below can be added to the ls command to show a list of files and their type?
answer
-F
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New