Category Archives: Linux

Linux: How to use the vi Editor

In Linux, there are different editors to edit text files. The most wide-spread editor is vi. Find below the basics on how to use vi: Open a text file: vi /etc/lighttpd/lighttpd.conf There are 2 modes in vi: Command mode (you are in this mode right after starting vi) You can use keyboard keys to navigate, delete, copy, paste, save the file, quit vi and do a number of other tasks - except entering text Insert mode (-- INSERT -- will appear in the bottom line of vi) You can enter text, Read more [...]