Command Line Arguments
-A |
Makes the Home key behave more intelligently (moving to beginning of non-whitespace characters, instead of the beginning of the line, as is default.)
|
-B |
Backs up edits to a copy of the file in the current directory with the suffix ~.
|
-E |
Convert typed tabs to spaces.
|
-L |
Don't add newlines to the ends of files.
|
-N |
Disable automatic conversion of files from DOS/Mac format.
|
-O |
Use the blank line below the titlebar as extra editing space.
|
-S |
Enable smooth scrolling. Text will scroll line-by-line, instead of the usual chunk-by-chunk behavior.
|
-c |
Constantly show the cursor position.
|
-w |
disable wrapping of long lines.
|
-$ |
Enable softwrap (wraps lines instead of horizontal scrolling.)
NOTE: Because $ is treated as a variable by many execution environments, it is advisable to flag this option separately from others you may be using, e.g.: nano -ALNc -$ textfile.txt |
nano [OPTIONS] [[+LINE,COLUMN] FILE]...
Shortcuts
^G |
Display help text.
|
^O |
Write the current file to disk
|
^X |
Exit nano.
|
^T |
Invoke spellcheck, if installed.
|
^Y |
Next screen.
|
^V |
Previous screen.
|
^L |
Refresh (force redraw) current screen.
|
^J |
Justify current paragraph. (Join together broken lines of text until double newline is encountered.)
|
^W |
Search for a string or regular expression.
|
^\ |
Search and replace a string or regular expression.
|