Exam Prep Editing Files Ch.4 - Answer Key + Test Bank | Linux Essentials 1e Rothwell by William Rothwell. DOCX document preview.
Linux Essentials for Cybersecurity (Rothwell/Kinsey)
Chapter 4 Editing Files
1) The vi (short for visual) text editor was introduced to __________ in the mid-1970s.
A) Windows
B) Linux
C) Unix
D) DOS
2) An improved version of the vi editor, available on some Linux distributions, is called __________.
A) vim
B) ed
C) gedit
D) joe
3) To edit a new file with the vi editor, you can just type the command with no arguments or type __________.
A) filename vi
B) vi filename
C) vi
D) filename
4) Which of the following modes is the default mode of operation for the vi editor?
A) Command mode
B) Last line mode
C) Insert mode
D) Ex mode
5) Which mode of operation for the vi editor allows you to perform complex operations, such as saving a document to a file with a different name?
A) Command mode
B) Last line mode
C) Insert mode
D) First line mode
6) While in insert mode, which key do you press to return to the default mode of operation for the vi editor?
A) ;
B) Enter
C) :
D) Escape
7) While in command mode, which key do you press to enter into last line mode for the vi editor?
A) ;
B) Enter
C) :
D) Escape
8) Which vi command to enter insert mode specifies that new inserted text will appear at the beginning of the line?
A) I
B) a
C) i
D) A
9) Which of the following commands enables the feature that displays “--INSERT--” at the bottom of the screen in a standard vi editor?
A) :enter showmode
B) :insert showmode
C) :set showmode
D) None of the above
10) While in the command mode of the vi editor, which key do you press to move forward one paragraph?
A) {
B) }
C) (
D) )
11) While in the command mode of the vi editor, which key do you press to move to the top of the screen?
A) H
B) L
C) M
D) G
12) While in the command mode of the vi editor, which key do you press to move to the beginning of the next word or punctuation mark?
A) b
B) W
C) B
D) w
13) Which of the following commands can be used to move forward five words in the vi editor?
A) 5W
B) 5w
C) W5
D) w5
14) In the standard vi editor, you can undo how many actions?
A) 0
B) 1
C) 2
D) Unlimited
15) Which command do you use in the vi editor if you want to close a document without saving all recent changes?
A) :q!
B) q:!
C) !q:
D) :!q
16) Which of the following commands is used to copy the current line to the end of the document in the vi editor?
A) yy
B) y$
C) yG
D) yw
17) Which of the following commands is used to delete the current line in the vi editor?
A) d$
B) dG
C) dw
D) dd
18) To find text in the vi editor, which character do you type before the search text to search forward in the document?
A) ?
B) /
C) *
D) \
19) Which of the following commands is used to save and quit a document in the vi editor?
A) :qs
B) :sq
C) :qw
D) :wq
20) Which of the following is a GUI-based text editor that includes tools and features like syntax highlighting, insertion of code by clicking a button, and automatic formatting?
A) bluefish
B) gedit
C) kwrite
D) nano
Document Information
Connected Book
Answer Key + Test Bank | Linux Essentials 1e Rothwell
By William Rothwell