The nano-Editor is an easy-to-use editor for editing data via terminal or console.
Personally, I prefer this editor because it is very easy to understand the control over other console editors, even if you haven’t worked with it for a while.
The nano-editor is pre-installed on the Ubuntu and its distributions. If this is not the case, the installation works with “apt-get”. All it takes is this command:
A short manual
Here are the most common commands in brief:
[table id=1 /]
If you miss commands in this table which you think should be included, please write me a comment.;)
Open, create and save files:
To create a document with the nano-Editor, open the editor with the command “nano” and the file name of the document to be created:
Alternatively, you can open the empty nano editor without an attached document name. Enter the name of the document when saving.
To open an existing document, simply use the command “nano” and append the name of the document to be opened to it.
The nano-Editor works in the directory where you are at the time of starting the program. So if you want to open or create a document in another directory, you have to either change the directory first with the command “cd”, or specify the directory path relative or absolute.
To save a modified document, use the key combination “Ctrl + O”, change the file name if necessary and confirm with “Enter”. Close the editor with “Ctrl + X”.
You can also use “Ctrl + X” as an abbreviation. The nano editor will ask you if you want to save the changes or not.
And now I wish you a lot of fun with the editing!
Visit https://www.nano-editor.org/ for more commands and information.