exam questions

Exam LX0-103 All Questions

View all questions & answers for the LX0-103 exam

Exam LX0-103 topic 3 question 24 discussion

Actual exam question from CompTIA's LX0-103
Question #: 24
Topic #: 3
[All LX0-103 Questions]

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?

  • A. By using the command :repeat followed by the number and the command.
  • B. By specifying the number right in front of a command such as 4l or 2yj.
  • C. By selecting all affected lines using the shift and cursor keys before applying the command.
  • D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
B. By specifying the number right in front of a command such as 4l or 2yj.
upvoted 1 times
linux_admin
2 years, 2 months ago
The answer is B. In the vi editor, commands such as moving the cursor or copying lines into the buffer can be issued multiple times or applied to multiple rows by specifying the number right in front of a command. For example, to move the cursor four spaces to the right, you can type "4l". Similarly, to copy two lines into the buffer, you can type "2yy". This is known as a count, and it applies the command to the specified number of lines or characters.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago