Multiple choice technology

Command to delete a line inside vi editor

  1. d

  2. D

  3. dd

  4. 1dd

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

In vi, 'dd' deletes the entire current line. '1dd' is equivalent to 'dd' (delete 1 line). 'd' alone is incomplete (it's a motion operator that needs another character), and 'D' deletes from cursor to end of line, not the entire line.