🎴 Flashcard Mode

Unix/Linux Operating Systems Quiz

Card1 / 20
Mastered0
Review0
QuestionClick to flip

How can you display the line numbers after opening a file in vi ?

AnswerClick to flip back
A
:se nu
πŸ’‘ Explanation:

In vi, the command :se nu (short for 'set number') displays line numbers in the editor. Option A's 'ic' stands for 'ignore case' which affects searching behavior, not display. Option D 'ctrl+n' is used for auto-completion in insert mode, not for toggling line numbers.

Change Mode