How to edit/save a file through Ubuntu Terminal

vdogsandman picture vdogsandman · Jul 8, 2013 · Viewed 375.9k times · Source

This is quite a simple question:

I just need to open a file (this filename is galfit.feedme). I can view the file with view galfit.feedme when I'm in the directory, but I do not know how to edit this file and then save the edit. How do you do that?

Answer

Nick Anthony Paruta picture Nick Anthony Paruta · Jul 8, 2013

Normal text editors are nano, or vi.

For example:

root@user:# nano galfit.feedme

or

root@user:# vi galfit.feedme