What Is Vi Editor in Linux Operating System?
Contents

The default editor that comes with the UNIX operating system is called vi (visual editor). Using vi editor, we can edit an existing file or create a new file from scratch. we can also use this editor to just read a text file. … The vi always starts in command mode. To enter text, you must be in insert mode.

What is the use of vi editor?

In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor.
…
More Linux resources.

Command Purpose
$ vi <filename> Open or edit a file.
i Switch to Insert mode.
Esc Switch to Command mode.
:w Save and continue editing.

What is vi editor explain various vi editors?

Look at the above snapshot, command :wq will save and quit the vi editor. When you’ll type it in command mode, it will automatically come at bottom left corner. If you want to quit without saving the file, use :q.
…
exit vi table:

Commands Action
:q! Quit discarding changes made
:w! Save (and write to non-writable file)
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest