LPIC-1 Exam 101 v5 (Linux Administrator) — Question 3
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
- A. i (lowercase)
- B. p (lowercase)
- C. P (uppercase)
- D. U (uppercase)
- E. u (lowercase)
Correct answer: B
Explanation
The correct answer is B, as the 'p' command pastes the deleted lines below the current cursor position. Option A ('i') is used for inserting text, while option C ('P') pastes the content above the current line. Options D ('U') and E ('u') are related to undoing changes and do not pertain to pasting deleted text.