there are a few text editiors that you can use from a prompt...emacs, vi, vim, elvis, and others....they are a bit tricky to learn. The easiest one is pico hopefully its on your system.
just invoke the editor command and the file name when you are in the directory with the file. i.e. --