[How To] Nano text editor

, , 12 Comments


  1. Open a file

    nano0
    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
  2. Start typing

    nano1
    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.

  3. Write as normal

    nano2
    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.

  4. Keyboard shortcuts

    nano5At 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.

  5. Status messages

    nano3

    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.

  6. Help screen

    nano4
    Be sure to investigate the Ctrl+G option, which will provide a help screen with all the options available.

Source: LXF151

 

12 Responses

  1. admin

    February 1, 2012 11:30 pm

    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

    Reply
  2. admin

    February 1, 2012 11:31 pm

    Антон Кузякин from Facebook: Vim for advanced users. But if you need small console editor – nano editor’s choice

    Reply
  3. admin

    February 1, 2012 11:32 pm

    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

    Reply
  4. admin

    February 1, 2012 11:34 pm

    Teb Tengri from Facebook: On that note zile isn’t too bad on a size contstrained system either if you are used to emacs

    Reply

Leave a Reply