linux编辑器vi
This section contains Aptitude Questions and Answers on Linux VI Editor.
本节包含Linux VI编辑器上的Aptitude问答。
The vi editor is also known as a Visual editor.
The vi editor is used to create and edit text files.
It is a very user-friendly editor and works on different distributions of Linux.
vim is the improved version of the vi editor.
Options:
Correct answer: 4
A, B, C, and D
Statements A, B, C, and D are correct about the vi editor.
vi编辑器也称为可视编辑器。
vi编辑器用于创建和编辑文本文件。
这是一个非常用户友好的编辑器,可在Linux的不同发行版上工作。
vim是vi编辑器的改进版本。
选项:
正确答案:4
A,B,C和D
关于vi编辑器的语句A,B,C和D是正确的。
Correct answer: 3
Both of the above
Both insert mode and command mode are used in the vi editor.
Correct answer: 1
1976
The vi editor was developed in 1976.
Correct answer: 1
Bill joy
The vi editor was developed by Bill joy in 1976.
正确答案:1
比尔·乔伊
vi编辑器由Bill Joy在1976年开发。
Correct answer: 3
:wq
The :wq command is used to save and quit from the vi editor.
Correct answer: 4
:q!
The :q! command is used to save and quit from the vi editor.
Correct answer: 1
Yes
Yes, the ZZ command is also used to save and quit from the vi editor.
i
a
o
O
Options
Correct answer: 4
A, B, C, and D
All given commands are used to switch from command mode to insert mode in the vi editor.
一世
一个
Ø
Ø
选件
正确答案:4
A,B,C和D
在vi编辑器中,所有给定命令均用于从命令模式切换到插入模式。
Correct answer: 1
A
The command A is used to start typing at the end of the current line in the vi editor.
Correct answer: 4
k
The k command is used to "move up" in the vi editor.
Correct answer: 2
h
The h command is used to "move left" in the vi editor.
Correct answer: 1
G
The G command is used to "move to the last line" in the file.
Correct answer: 1
dd
The dd command is used to "delete the current line" from the file.
Correct answer: 4
u
The u command is used to "undo the last command" in the vi editor.
Correct answer: 4
yy
The yy command is used to "copy a line" in the vi editor.
Correct answer: 4
ddp
The ddp command is used to "swap two lines" in the vi editor.
Correct answer: 2
d$
The d$ command is used to "delete till the end of the line" in the vi editor.
Correct answer: 3
w
The w command is used to "move one word forward" in the vi editor.
Correct answer: 2
/string
The /string is used to "forward search for given string" in the vi editor.
Correct answer: 4
yw
The yw command is used to "copy one word" in the vi editor.
Correct answer: 1
Dot (.)
The . command is used to "repeat last command" in vi editor.
Correct answer: 2
xp
The xp command is used to "switch two characters" in the vi editor.
Correct answer: 3
r
The r command is used to "replace the current character" in the vi editor.
Correct answer: 1
X
The X command is used to "delete the character before cursor" in the vi editor.
Correct answer: 4
P
The P command is used to "paste before the current line" in the vi editor.
翻译自: https://www.includehelp.com/linux/vi-editor-aptitude-questions-and-answers.aspx
linux编辑器vi