101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 106


In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Show Answer
Correct Answer: B

In the vi editor, commands can be issued multiple times or applied to multiple rows by specifying the number right in front of a command. For example, typing '2j' will move the cursor down two lines, and '3y' will yank (copy) three lines into the buffer. This syntax allows for efficient repetition of commands without needing to retype them multiple times.

Discussion

2 comments
Sign in to comment
hiatusland
Apr 25, 2021

ah yes, the "shit and cursor keys," my favorite of the keys.

CuriousLinuxCat
Jul 24, 2021

25 years have I walked this Earth, and have never found myself not using one of these glorious keys.

sheilawu
May 10, 2023

lamo it is too funny when I saw "shit"

musashino_ninjaOption: B
Sep 11, 2020

41 should be 4l(elle).