1. NANO Editor shortcuts

  1. Copy line: Ctrl + k

  2. Paste line: Ctrl + U

  3. Cut line: Alt + 6

  4. Go to beginning of a line: Ctrl + a

  5. Go to end of a line: Ctrl + e

  6. Search text: Ctrl + w

  7. Delete word next to cursor: Ctrl + Del

  8. Delete word previous to the cursor: Alt + Backspace

  9. Go to previous line: Ctrl + p

  10. Go to next line: Ctrl + n

  11. Page up: Ctrl + v

  12. Page down: Ctrl + y

  13. Start selecting text from cursor position: Alt + a

  14. Go to start of paragraph: Alt + 9

  15. Go to end of paragraph: Alt + 0

  16. Color syntax highlighting enable / disable: Alt + y

  17. Enable/disable line numbering: Alt + n

  18. Undo last action: Alt + u

  19. Redo last action: Alt + e

  20. Insert another file's text into current one: Ctrl + r

  21. Close the current buffer with prompt to save it or not: Ctrl + x

  22. Write the current buffer to disk ( save the file to disk without exiting ): Ctrl + o

  23. Count the number of lines, words, and characters: Alt + d

  24. Comment/Uncomment current line: Alt + 3

Last updated