How to edit/save a file through Ubuntu Terminal
问题 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? 回答1: Normal text editors are nano , or vi . For example: root@user:# nano galfit.feedme or root@user:# vi galfit.feedme 回答2: For editing use vi galfit.feedme //if user has file editing permissions or sudo vi galfit.feedme //if user doesn't have