ITS 121 Chapter 3 Study Guide

24 July 2022
4.7 (114 reviews)
25 test answers

Unlock all answers in this set

Unlock answers (21)
question
The more command should not be used on binary files. True or False?
answer
True
question
Linux uses a logical directory tree to organize files into different folders. True or False?
answer
True
question
It is acceptable to use shell metacharacters when naming files. True or False?
answer
False
question
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program. True or False?
answer
False
question
Pressing the Esc key at the prompt while using the more command displays a help screen. True or False?
answer
False
question
To display text in reverse order, what command should be used? A. cat B. tac C. tee D. set
answer
B. tac
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. X B. dd C. yw D. D
answer
B. dd
question
When using the ls -F command, what special character indicates a linked file? A. @ B. * C. & D. -
answer
A. @
question
Select the command below that can be used to provide a long listing for each file in a directory: A. ls -T B. ls -L C. ls -F D. ls -l
answer
D. ls -l
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. Alt B. Tab C. Ctrl D. Esc
answer
B. Tab
question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? A. $ B. x C. Ctrl+g D. P
answer
C. Ctrl+g
question
What command can be issued to confirm what directory you are in at a command line prompt? A. dir B. pwd C. whereami D. ld
answer
B. pwd
question
What command can be used to display the last five lines of a text file? A. end -5 B. head -5 C. stop -5 D. tail -5
answer
D. tail -5
question
What command is most effective at identifying different types of files? A. stat B. ls -l C. ll D. file
answer
A. stat
question
In what mode does the vi editor open by default? A. append mode B. insert mode C. overview mode D. command mode
answer
D. command mode
question
Which switch below can be added to the ls command to show a list of files and their type? A. -T B. -L C. -F D. -l
answer
C. -F
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. dd B. Ctrl+d C. Ctrl+k D. Ctrl+a
answer
C. Ctrl+k
question
Which character(s) below represent extended regular expression metacharacter(s)? A. . B. [...] C. ^ D. {}
answer
D. {}
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. cd ../.. C. /home/joe D. cd ./..
answer
B. cd ../..
question
The LISP artificial intelligence programming language can be used with which text editor below? A. Kedit editor B. Joe editor C. Emacs D. Nedit
answer
C. Emacs
question
To display the contents of a text file called data, what command should be used? A. disp data B. ls data C. ls -l data D. cat data
answer
D. cat data
question
Select the regular expression metacharacter that matches 0 or more occurences of the previous character. A. * B. ? C. + D. ^
answer
A. *
question
What metacharacter can be used to refer to the current user's home directory? A. ~ B. @ C. & D. #
answer
A. ~
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. :q! C. :exit D. :!
answer
B. :q!
question
Using wildcard metacharacters, how can one indicate a number is either, 1,2,3, or 4? A. 1-4 B. [1-4] C. [1234] D. [1,2,3,4]
answer
B. [1-4]