Skip to main content
Engineering LibreTexts

05-A.3: Nano Editor

  • Page ID
  • Nano Editor

    Anther editor that is often used is nano. It is much less powerful than vim, but can be simpler to use for those not used to all the nuances of vim.

    To get to nano, simply type the command on the command line, and if you have a file you want to edit, include the file name. Nano opens up the file and places the cursor at the top of the file. To move around you can use the arrow keys or the PageUp/PageDown keys, as well as the Home/End keys. These will behave as you expect them to.

    The Nano editor is a very simple editor with a menu of keystrokes at the bottom of the window.
    Figure \(\PageIndex{1}\): Using the nano editor. ("nano editor" by Patrick McClanahan is licensed under CC BY-SA 4.0)

    For editing, the Delete key and backspace key will remove individual characters. Using the key sequence CTRL+^ you can "mark" text that you want to copy, then move the cursor to the end of the section of text, hit Alt+^ which copies the marked text, then move the cursor to where you desire to place the text, and Ctrl+U will paste it before the cursor position.

    All of the commands shown at the bottom of the window are a CTRL key in conjunction with the specified key. You do NOT have to use the shift key - so ^G is simply the Ctrl key pressed along with the g key.

    • Was this article helpful?