CET 130 Chap 3 Test

9 September 2022
4.7 (114 reviews)
30 test answers

Unlock all answers in this set

Unlock answers (26)
question
What command can be issued to confirm what directory you are in at a command line prompt?
answer
pwd
question
What metacharacter can be used to refer to the current user's home directory?
answer
~
question
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
answer
Cd ../..
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?
answer
tab
question
Which switch command can be added to the ls command to show a list of files and their type?
answer
-F
question
When issuing the ls -F command, what special character indicates a linked file?
answer
@
question
What command can be used to provide a long listing for each file in a directory
answer
ls -l
question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
answer
[1234]
question
To display the contents of a text file called data, what command should be used?
answer
Cat data
question
What command can be used to display the last five lines of a text file?
answer
Tail -5
question
Which character(s) represent extended regular expression metacharacter(s)?
answer
{}
question
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
answer
*
question
What key combinations, commonly used in the vi editor command mode, displays current line statistics?
answer
Ctrl + g
question
The LISP artificial intelligence programming language can be used with which text editor ?
answer
Emacs editor
question
To display a text file in reverse order, what command should be used?
answer
Tac command
question
What command is most effective at identifying different types of files?
answer
File command
question
In what mode does the vi editor open by default?
answer
command
question
In vi, using command mode, what series of key presses will cause the line on which the cursor is on to be deleted?
answer
dd
question
At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?
answer
:q!
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?
answer
ctrl + K
question
Linux uses a logical directory tree to organize files into different folders.
answer
t
question
It is acceptable to use shell metacharacters when naming files.
answer
f
question
Pressing the Esc key at the prompt while using the more command displays a help screen.
answer
f
question
The more command should not be used on binary files.
answer
t
question
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
answer
f
question
Filenames that start with a period, such as .file, are referred to as ______ files.
answer
hidden
question
In a file listing, the 9 characters following the file type (for example, -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_______ editor.
answer
GNU Emacs
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