Here’s a brief reminder on how you can edit files with vi directly from the command line. Text is all you get, no other visual clues or menus are included, and best of all you need to know each keyboard shortcut once you’ve entered it.
vi is an old editor going back all the way to 1976. It’s not the most comfortable one, but the beauty is that it’s available on pretty much every distribution. There are several other common editors out there, but it’s not always an option to install those just for a quick file edit.
In this article I’ll show you the most commonly used commands and shortcuts, help you delete old versions of a file and show you a couple of links to more in-depth sources.
I assume here that you are comfortable using the command line interface (CLI).