Multiple choice technology

How to display each line number in vi?

  1. :se nu

  2. :se

  3. :show number

  4. :set number

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

In vi editor, both :se nu (abbreviation of :set number) and :set number display line numbers. The :se nu form works because 'se' is the short form of 'set' and 'nu' is the short form of 'number'. The :se command alone is incomplete, and :show number is not valid vi syntax.