Mainos / Advertisement:

Ero sivun ”Vi/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Save file:)
(Ak: Uusi sivu: ESC and :w)
Rivi 16: Rivi 16:
 
Save file:
 
Save file:
  
   ESC ja sen jälkeen :w
+
   ESC and :w
  
 
Sulje tiedosto tallentamatta:
 
Sulje tiedosto tallentamatta:

Versio 23. heinäkuuta 2015 kello 07.46

Muut kielet:
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 
 vi file

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

 i

Save file:

 ESC and :w

Sulje tiedosto tallentamatta:

 ESC ja sen jälkeen :q

Sulje tiedosto ja tallenna

 ESC ja sen jälkeen :wq
Mainos / Advertisement: