linux编辑器vi_Linux VI编辑器能力问题和解答

linux编辑器vi

This section contains Aptitude Questions and Answers on Linux VI Editor.

本节包含Linux VI编辑器上的Aptitude问答。

1) There are the following statements that are given below, which of them are correct about vi the editor?
  1. The vi editor is also known as a Visual editor.

  2. The vi editor is used to create and edit text files.

  3. It is a very user-friendly editor and works on different distributions of Linux.

  4. vim is the improved version of the vi editor.

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

Statements A, B, C, and D are correct about the vi editor.

1)下面给出了以下语句,其中哪些对于vi编辑器是正确的?
  1. vi编辑器也称为可视编辑器。

  2. vi编辑器用于创建和编辑文本文件。

  3. 这是一个非常用户友好的编辑器,可在Linux的不同发行版上工作。

  4. vim是vi编辑器的改进版本。

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

正确答案:4
A,B,C和D

关于vi编辑器的语句A,B,C和D是正确的。

2) Which of the following mode(s) are used in the vi editor?
  1. Insert mode

  2. Command mode

  3. Both of the above

  4. None of the above

Answer & Explanation

Correct answer: 3
Both of the above

Both insert mode and command mode are used in the vi editor.

2)vi编辑器中使用以下哪种模式?
  1. 插入方式

  2. 命令模式

  3. 以上两者

  4. 以上都不是

答案与解释

正确答案:3
以上两者

vi编辑器中同时使用了插入模式和命令模式。

3) In which year vi editor was developed?
  1. 1976

  2. 1980

  3. 1982

  4. 1988

Answer & Explanation

Correct answer: 1
1976

The vi editor was developed in 1976.

3)vi编辑器是在哪一年开发的?
  1. 1976年

  2. 1980

  3. 1982年

  4. 1988年

答案与解释

正确答案:1
1976年

vi编辑器于1976年开发。

4) Who was developed the vi editor?
  1. Bill joy

  2. James gosling

  3. Andy Bechtolseim

  4. Scott G. McNealy

Answer & Explanation

Correct answer: 1
Bill joy

The vi editor was developed by Bill joy in 1976.

4)谁开发了vi编辑器?
  1. 比尔·乔伊

  2. 詹姆斯·高斯林

  3. 安迪·贝托托林(Andy Bechtolseim)

  4. 斯科特·麦克尼利

答案与解释

正确答案:1
比尔·乔伊

vi编辑器由Bill Joy在1976年开发。

5) Which of the following command is used to "save and quit" from the vi editor?
  1. :q

  2. :Q

  3. :wq

  4. :q!

Answer & Explanation

Correct answer: 3
:wq

The :wq command is used to save and quit from the vi editor.

5)以下哪个命令用于从vi编辑器中“保存并退出”?
  1. :q

  2. :Q

  3. :wq

  4. :q!

答案与解释

正确答案:3
:wq

:wq命令用于保存和退出vi编辑器。

6) Which of the following command is used to "quit with discarding changes" from the vi editor?
  1. :q

  2. :Q

  3. ZZ

  4. :q!

Answer & Explanation

Correct answer: 4
:q!

The :q! command is used to save and quit from the vi editor.

6)以下哪个命令用于从vi编辑器“退出并放弃更改”?
  1. :q

  2. :Q

  3. Z Z

  4. :q!

答案与解释

正确答案:4
:q!

:q! 命令用于保存和退出vi编辑器。

7) "ZZ" command is also used to save and quit from the vi editor?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, the ZZ command is also used to save and quit from the vi editor.

7)“ ZZ”命令是否还用于保存并退出vi编辑器?
  1. 没有

答案与解释

正确答案:1

是的, ZZ命令还用于保存和退出vi编辑器。

8) Which of the following commands are used to switch from command mode to insert mode in the vi editor?
  1. i

  2. a

  3. o

  4. O

Options

  1. A and B

  2. A and C

  3. A, C, and D

  4. A, B, C, and D

Answer & Explanation

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.

8)以下哪个命令在vi编辑器中用于从命令模式切换到插入模式?
  1. 一世

  2. 一个

  3. Ø

  4. Ø

选件

  1. A和B

  2. A和C

  3. A,C和D

  4. A,B,C和D

答案与解释

正确答案:4
A,B,C和D

在vi编辑器中,所有给定命令均用于从命令模式切换到插入模式。

9) Which of the following command is used to "start typing at the end of the current line" in the vi editor?
  1. A

  2. a

  3. o

  4. O

Answer & Explanation

Correct answer: 1
A

The command A is used to start typing at the end of the current line in the vi editor.

9)在vi编辑器中,以下哪个命令用于“在当前行的末尾开始键入”?
  1. 一个

  2. 一个

  3. Ø

  4. Ø

答案与解释

正确答案:1
一个

命令A用于在vi编辑器中当前行的末尾开始键入。

10) Which of the following command is used to "move up" in the vi editor?
  1. I

  2. h

  3. j

  4. k

Answer & Explanation

Correct answer: 4
k

The k command is used to "move up" in the vi editor.

10)以下哪个命令在vi编辑器中用于“向上移动”?
  1. 一世

  2. H

  3. Ĵ

  4. ķ

答案与解释

正确答案:4
ķ

k命令用于在vi编辑器中“上移”。

11) Which of the following command is used to "move left" in vi editor?
  1. I

  2. h

  3. j

  4. k

Answer & Explanation

Correct answer: 2
h

The h command is used to "move left" in the vi editor.

11)以下哪个命令在vi编辑器中用于“向左移动”?
  1. 一世

  2. H

  3. Ĵ

  4. ķ

答案与解释

正确答案:2
H

h命令用于在vi编辑器中“向左移动”。

12) Which of the following command is used to "move to the last line" in the file?
  1. G

  2. K

  3. Dot (.)

  4. ``

Answer & Explanation

Correct answer: 1
G

The G command is used to "move to the last line" in the file.

12)以下哪个命令用于“移至文件的最后一行”?
  1. G

  2. ķ

  3. 点(。)

  4. ``

答案与解释

正确答案:1
G

G命令用于“移至文件的最后一行”。

13) Which of the following command is used to "delete current line" from the file?
  1. dd

  2. r

  3. x

  4. X

Answer & Explanation

Correct answer: 1
dd

The dd command is used to "delete the current line" from the file.

13)以下哪个命令用于从文件中“删除当前行”?
  1. dd

  2. [R

  3. X

  4. X

答案与解释

正确答案:1
dd

dd命令用于从文件中“删除当前行”。

14) Which of the following command is used to "undo the last command" in the vi editor?
  1. uu

  2. x

  3. X

  4. u

Answer & Explanation

Correct answer: 4
u

The u command is used to "undo the last command" in the vi editor.

14)以下哪个命令在vi编辑器中用于“撤消上一个命令”?
  1. u

  2. X

  3. X

  4. ü

答案与解释

正确答案:4
ü

u命令用于在vi编辑器中“撤消最后一个命令”。

15) Which of the following command is used to "copy a line" in the vi editor?
  1. CC

  2. cc

  3. YY

  4. yy

Answer & Explanation

Correct answer: 4
yy

The yy command is used to "copy a line" in the vi editor.

15)以下哪个命令在vi编辑器中用于“复制行”?
  1. 抄送

  2. 抄送

  3. YY

  4. y

答案与解释

正确答案:4
y

yy命令用于在vi编辑器中“复制行”。

16) Which of the following command is used to "swap two lines" in the vi editor?
  1. sl

  2. SL

  3. DDP

  4. ddp

Answer & Explanation

Correct answer: 4
ddp

The ddp command is used to "swap two lines" in the vi editor.

16)以下哪个命令在vi编辑器中用于“交换两行”?
  1. sl

  2. SL

  3. DDP

  4. ddp

答案与解释

正确答案:4
ddp

ddp命令用于在vi编辑器中“交换两行”。

17) Which of the following command is used to "delete till the end of the line" in the vi editor?
  1. $

  2. d$

  3. d0

  4. DD

Answer & Explanation

Correct answer: 2
d$

The d$ command is used to "delete till the end of the line" in the vi editor.

17)以下哪个命令在vi编辑器中用于“删除到行尾”?
  1. $

  2. d $

  3. d0

  4. DD

答案与解释

正确答案:2
d $

d $命令用于在vi编辑器中“删除到行尾”。

18) Which of the following command is used to "move one word forward" in the vi editor?
  1. b

  2. ww

  3. w

  4. yw

Answer & Explanation

Correct answer: 3
w

The w command is used to "move one word forward" in the vi editor.

18)以下哪个命令在vi编辑器中用于“向前移动一个单词”?
  1. b

  2. w

  3. w

  4. w

答案与解释

正确答案:3
w

w命令用于在vi编辑器中“向前移动一个单词”。

19) Which of the following command is used to "forward search for given string" in the vi editor?
  1. ?string

  2. /string

  3. \string

  4. #string

Answer & Explanation

Correct answer: 2
/string

The /string is used to "forward search for given string" in the vi editor.

19)以下哪个命令在vi编辑器中用于“向前搜索给定的字符串”?
  1. ?串

  2. /串

  3. \串

  4. #串

答案与解释

正确答案:2
/串

/ string用于在vi编辑器中“向前搜索给定的字符串”。

20) Which of the following command is used to "copy one word" in vi editor?
  1. c

  2. w

  3. cw

  4. yw

Answer & Explanation

Correct answer: 4
yw

The yw command is used to "copy one word" in the vi editor.

20)以下哪个命令在vi编辑器中用于“复制一个单词”?
  1. C

  2. w

  3. 连续波

  4. w

答案与解释

正确答案:4
w

yw命令用于在vi编辑器中“复制一个单词”。

21) Which of the following command is used to "repeat the last command" in the vi editor?
  1. Dot (.)

  2. !

  3. @

  4. $

Answer & Explanation

Correct answer: 1
Dot (.)

The . command is used to "repeat last command" in vi editor.

21)以下哪个命令在vi编辑器中用于“重复最后一个命令”?
  1. 点(。)

  2. @

  3. $

答案与解释

正确答案:1
点(。)

的。 命令用于在vi编辑器中“重复最后一个命令”。

22) Which of the following command is used to "switch two characters" in vi editor?
  1. sc

  2. xp

  3. xc

  4. xx

Answer & Explanation

Correct answer: 2
xp

The xp command is used to "switch two characters" in the vi editor.

22)以下哪个命令在vi编辑器中用于“切换两个字符”?
  1. SC

  2. p

  3. c

  4. xx

答案与解释

正确答案:2
p

xp命令用于在vi编辑器中“切换两个字符”。

23) Which of the following command is used to "replace the current character" in the vi editor?
  1. R

  2. rr

  3. r

  4. rc

Answer & Explanation

Correct answer: 3
r

The r command is used to "replace the current character" in the vi editor.

23)以下哪个命令在vi编辑器中用于“替换当前字符”?
  1. [R

  2. rr

  3. [R

  4. rc

答案与解释

正确答案:3
[R

r命令用于在vi编辑器中“替换当前字符”。

24) Which of the following command is used to "delete the character before cursor" in the vi editor?
  1. X

  2. x

  3. D

  4. d

Answer & Explanation

Correct answer: 1
X

The X command is used to "delete the character before cursor" in the vi editor.

24)在vi编辑器中,以下哪个命令用于“删除光标前的字符”?
  1. X

  2. X

  3. d

  4. d

答案与解释

正确答案:1
X

X命令用于在vi编辑器中“删除光标前的字符”。

25) Which of the following command is used to "paste before the current line" in the vi editor?
  1. y

  2. Y

  3. p

  4. P

Answer & Explanation

Correct answer: 4
P

The P command is used to "paste before the current line" in the vi editor.

25)以下哪个命令在vi编辑器中用于“在当前行之前粘贴”?
  1. ÿ

  2. ÿ

  3. p

  4. P

答案与解释

正确答案:4
P

P命令用于在vi编辑器中“在当前行之前粘贴”。

翻译自: https://www.includehelp.com/linux/vi-editor-aptitude-questions-and-answers.aspx

linux编辑器vi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值