101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 42


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?

Show Answer
Correct Answer: B

In vi, the 'p' (lowercase) command is used to put the most recently deleted or yanked text below the current line. After deleting 3 lines and moving the cursor to a different line, using 'p' will insert the deleted lines below the current cursor position.

Discussion

4 comments
Sign in to comment
shyamiteOption: B
Feb 21, 2020

p is below cursor , P is above cursor.

minajahan
Jun 12, 2020

https://books.google.se/books?id=_ZF2CJ0XfGoC&lpg=PA112&ots=IDIviGWO0l&dq=P%20is%20above%20cursor&pg=PA112#v=onepage&q=P%20is%20above%20cursor&f=false

iwkno6
Jul 29, 2021

agreed!

LazylinuxOption: B
Apr 21, 2022

p is below cursor and capital P is above cursor

valhallaoneOption: B
Jan 24, 2023

the shorter one (p) goes below cursor, the taller one (P) above.

NinymoOption: B
Mar 24, 2024

Answer: B