Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

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?

#vi#dd#p#paste#buffer
A

i (lowercase)

B

P (uppercase)

C

p (lowercase)

Correct
D

U (uppercase)

E

u (lowercase)

Resolution & Explanations

In vi, the p (lowercase) command puts the contents of the yank/delete buffer after the current line or character, while P (uppercase) puts it before.