Linux nano commands

What is nano commands in Linux?

Nano is a small fa friendly editor which is targeted to replace Pico. Nano contents some missing features of Pico.

What do nano do in terminal?

GNU nano is a simple terminal-based text editor. Less powerful than Emacs or Vim, very easy to learn and use. Nano can be used in terminal windowor at a console system.




Nano commands

Ctrl+r - Open a file from within nano.
Ctrl+o - Save the current file buffer to disk.
Ctrl+g Go to a target line number.
Ctrl+k Cut a highlighted region into the clipboard.
Ctrl+u Uncut from the cut buffer into the current line.
Ctrl+j - Justify the current paragraph.
Ctrl+x - Close the current file buffer.
Ctrl+e - Move to end of the current line.
Ctrl+a - Move to the beginning of the current line.
Ctrl+d - Delete the character from front.
Ctrl+space - Move forward one word.
Ctrl+n - Move to next line.
Ctrl+p - Move to previous line.
Ctrl+w - Search for a string or a regular expression.
Ctrl+c - Display the position of the cursor.
Ctrl+\ - Replace a string or a regular expression.
Ctrl+f - Move forward one character.
Ctrl+b - Move back one character.
Ctrl+m - Insert a new line at a cursor position.
Ctrl+l - Refresh the current screen.
Ctrl+i- Insert a tab in cursor position.
alt+x - Help mode enable/disable
alt+b - Backup files enable/disable.
alt+j - Justify the entire file.
alt+d - Count the number of words, lines and characters.














No comments