nano
is a simple console text editor. It's really easy to use (comparing to vim
lol).
Open a file with nano
:
user@ubuntu:~$ nano test.txt
We can use the shortcuts seen in the previous image to do some operations. For example :
Ctrl + o
: Save the content of the file.Ctrl + x
: Save and exit.Ctrl + w
: Search for text in the current file.
vim
is a really advanced console text editor. It allows you to edit text files only using the keyboard (you don't have
to touch the mouse at all).
vim
is not installed by default, you need to install it:
sudo apt-get install vim
Here is the best tutorial for beginners to learn vim
. Sincerely, the author of this tutorial (Mathieu Nebra) is an absolute genius, and I doubt any one can do better than him.