[How To] Nano text editor

  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 Comments

  1. admin February 1, 2012 Reply
  2. admin February 1, 2012 Reply
  3. admin February 1, 2012 Reply
  4. admin February 1, 2012 Reply
  5. admin February 1, 2012 Reply
  6. admin February 1, 2012 Reply
  7. admin February 1, 2012 Reply
  8. admin February 1, 2012 Reply
  9. admin February 1, 2012 Reply
  10. admin February 1, 2012 Reply
  11. admin February 1, 2012 Reply
  12. admin February 1, 2012 Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.