[How To] Nano text editor
|-
Open a file
To open a text file in nano, change to the directory where the file is stored, type nano and pass the filename as an argument, ex.nano command-notes.txt
-
Start typing
The entire terminal screen will be taken over by the nano interface. You can start typing immediately and see your text appear in the main part of the window. -
Write as normal
Everything will work as expected, including the Return key for a new line, and the Arrow keys to scroll when the file gets large enough. -
Keyboard shortcuts
At the bottom are commonly used keyboard shortcuts. The ^ indicates that you need to press Ctrl at the same time as the letter. Note that WriteOut means save.
-
Status messages
Some shortcuts will result in a status message and a question being asked of you. Read the message, and respond according to the options presented below.
-
Help screen
Be sure to investigate the Ctrl+G option, which will provide a help screen with all the options available.
[adinserter block=”6″]
Source: LXF151
Craig Sparks from Facebook: bah, wheres how-to-vim-text-editor nano is a bunch of control keys and doesn’t even protect the document. nano < crap
Thomas McNicholas from Facebook: gedit is good enough for me but here’s something I found about vim http://dailyvim.blogspot.com/
Alexander DeWolf from Facebook: I much prefer vi over nano.
Антон Кузякин from Facebook: Vim for advanced users. But if you need small console editor – nano editor’s choice
Антон Кузякин from Facebook: Often nano is pre installed
Niels Lemmens from Facebook: nano is easy to start with, now I know how to use vim I’m not going back
Teb Tengri from Facebook: Nanois easier to use from someone coming from Windows using notepad or wordpad. I’ve found vi to be available on far more systems than nano: embedded and the like
Ari Lammasniemi from Facebook: does anyone remember good old Joe anymore? 😀
Антон Кузякин from Facebook: Does anyone use good old Joe anymore?:-)
Teb Tengri from Facebook: ed and joe, old friends, sadly we’ve grown apart since 2000 or so.
Alexander DeWolf from Facebook: JOVE (Johnathan’s Own Verion of EMACS) is where I started.
Teb Tengri from Facebook: On that note zile isn’t too bad on a size contstrained system either if you are used to emacs