Linux - How to edit a file?
About
To edit a file in the shell mode, you have to use an editor such as:
- emacs
- pico
- gedit
For a Windows gui, Winscp has its own editor.
Articles Related
Snippet
To edit the file:
emacs file.txt
vi file.txt
pico file.txt
To save the file:
- with pico type CTRL+O to save and CTRL+X to exit.
- with vi, see this article: VI Text Editors (Vim, Nvi)
- with emacs: Ctl-x Ctl-c