Linux Foundation Certified System Administrator (LFCS) — Question 76

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Answer options

Correct answer: C

Explanation

The correct answer is 'p (lowercase)', as this command pastes the last deleted or copied text after the cursor position. The 'P (uppercase)' command would paste above the cursor, while 'i (lowercase)' is used to enter insert mode, and 'U (uppercase)' and 'u (lowercase)' are for undoing changes, which do not relate to pasting.