Arguments, commands and shortcuts for nano, a text editor found on most Unix systems.
Command Line Arguments
Makes the Home key behave more intelligently (moving to beginning of non-whitespace characters, instead of the beginning of the line, as is default.)
Backs up edits to a copy of the file in the current directory with the suffix ~.
Convert typed tabs to spaces.
Don't add newlines to the ends of files.
Disable automatic conversion of files from DOS/Mac format.
Use the blank line below the titlebar as extra editing space.
Enable smooth scrolling. Text will scroll line-by-line, instead of the usual chunk-by-chunk behavior.
Constantly show the cursor position.
disable wrapping of long lines.
Enable softwrap (wraps lines instead of horizontal scrolling.)
$ 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]...
Nano is a text editor suited to working in a UNIX-based command line environment. It is not as powerful as PC window-based editors, as it does not rely on the mouse, but still has many useful features.
Most nano commands are invoked by holding down the Ctrl key (that is, the control key), and pressing one of the other keys. In this text, the control key is referred to using ^. For example, ^X means "hold down the CTRL key and press the x key''. Most of the important commands are listed at the bottom of your screen when nano is running.
Display help text.
Write the current file to disk
Invoke spellcheck, if installed.
Refresh (force redraw) current screen.
Justify current paragraph. (Join together broken lines of text until double newline is encountered.)
Search for a string or regular expression.
Search and replace a string or regular expression.