Multiple choice technology

How to copy 10 lines in vi?

  1. 10cp

  2. 10dd

  3. 10yy

  4. yy

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In vi, the yank (yy) command copies lines. The syntax 10yy copies 10 lines starting from the current cursor position. The 10dd command would delete (not copy) 10 lines, 10cp is not a valid command, and yy alone copies only one line.