101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 66


In the vi editor, which of the following commands will copy the current line into the vi buffer?

Show Answer
Correct Answer: D

In the vi editor, the command 'yy' is used to copy (or yank) the current line into the buffer. This allows you to later paste the copied line elsewhere in the document using the 'p' command. The other options provided do not perform the copy function for the current line in the vi editor.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: D
Oct 21, 2023

In the vi editor, the command that will copy the current line into the vi buffer is: D. `yy` The `yy` command is used to copy (yank) the current line into the vi buffer. After using `yy`, the current line is copied, and you can paste it elsewhere in the document using the `p` command.