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?
Once you have modified a file, press [Esc] shift to the command mode and press :w and hit [Enter] as shown below. To save the file and exit at the same time, you can use the ESC and :x key and hit [Enter] . Optionally, press [Esc] and type Shift + Z Z to save and exit the file.
Normal text editors are nano
, or vi
.
For example:
root@user:# nano galfit.feedme
or
root@user:# vi galfit.feedme
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With