CompTIA Linux+ Powered by LPI (LX0-103) — Question 10
In the vi editor, which of the following commands will copy the current line into the vi buffer?
Answer options
- A. c
- B. cc
- C. 1c
- D. yy
- E. 1y
Correct answer: D
Explanation
The command 'yy' is the correct answer because it specifically copies the entire line into the vi buffer. The 'c' command is used for changing text, 'cc' deletes and changes the current line, '1c' is not a valid command for copying, and '1y' is also not a standard command for copying a line.