Linux Foundation Certified System Administrator (LFCS) — Question 45
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 used in the vi editor to copy the current line into the buffer. The other options, such as 'c', 'cc', and '1c', are not designed specifically for copying lines, while '1y' does not have a valid function in this context.