nano: Invoking
2 Invoking
**********
The usual way to invoke ‘nano’ is:
nano [FILE]
But it is also possible to specify one or more options (see the next
section), and to edit several files in a row. Additionally, the cursor
can be put on a specific line of a file by adding the line number with a
plus sign before the filename, and even in a specific column by adding
it with a comma. So a more complete command synopsis is:
nano [OPTION]... [[+LINE[,COLUMN]|+,COLUMN] FILE]...
Normally, however, you set your preferred options in a ‘nanorc’ file
(Nanorc Files). And when using ‘set positionlog’ (making ‘nano’
remember the cursor position when you close a file), you will rarely
need to specify a line number.
As a special case: when instead of a filename a dash is given, ‘nano’
will read data from standard input. This means you can pipe the output
of a command straight into a buffer, and then edit it.