How to use vim (vi) command line editor on linux ?
How to use nano command line editor on linux ?
Vi - Vim Ccommand line editor's Usefull commands
vim filename.txt (to create or open a file)
i (Insert), To edit a text
Esc Button (To exit 'Insert' mode)
/yourtext (Search) search a string in the text file
:w (Write, Save file)
:wq (Write and Quite)
:q! (Force quite without saving)
ZZ (Write and Quite) -- vim only
Nano Command line editor
Nano is a command line but pseudo graphic interface easy to use. All commands are display at the bottom of the nano interface. in nano the ^ signify the Ctrl button.
^W = Ctrl + W : Search in the file
^W = Ctrl + O : Save file ;
^W = Ctrl + X : Quite Nano.