Quantcast
Channel: Magnus K Karlsson
Viewing all articles
Browse latest Browse all 526

Common vi commands

$
0
0

Most Linux server runs without a graphical interface and the most sure installed editor for file is the vi editor. But getting used with vi can be a little challenging. Below I will show you the most common vi commands.

Openvi file.txt
Close without saving:q!
Inserti
Quite editingESC
Write and close:wq
Copy line and paste lineyy + p
Delete line and paste linedd + P (capital)
Change wordcw
Browse to next workw
Browse to previous workb
Go to first line1G
Go to last lineG

Viewing all articles
Browse latest Browse all 526

Trending Articles