Mainos / Advertisement:


From Taisto
Jump to navigation Jump to search
This page is a translated version of the page Vi and the translation is 100% complete.

Other languages:
English • ‎suomi

Vi is a commonly used text editor for Linux and comes installed by stock in various Linux based operating systems.

Basic commands

Open the vi text editor using the command

 vi file

In most cases the file will be opened in read state. You can access the write state with:


Save file:

 ESC and then :w

Close file without saving:

 ESC and then :q

Close file and save:

 ESC and then :wq
Mainos / Advertisement: