How to edit a file
nano
nano is a little text editor. nano is simple; it opens, edits, and saves files. It doesn’t do color coding, but if you just want to save a couple of lines or quickly edit a config file, nano will do the job brilliantly.
$ nano index.html Opens file index.html
$ nano -B index.html When saving a file, backup the previous version of it to the current filename suffixed with a “~”.
Use man nano for additional information.