1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages/common/nano.md
Emily Grace Seville a3ccdaee45
nano: refresh page (#8055)
* Prettify nano:
- better grammar
- standardize page
- more general examples

* Better command title

* Add `Pico` mention in command title

* Update pages/common/nano.md

* Update pages/common/nano.md

* Apply suggestions from code review

* Update pages/common/nano.md
2023-01-08 18:07:06 +10:00

744 B

nano

Command-line text editor. An enhanced Pico clone. More information: https://nano-editor.org.

  • Start the editor:

nano

  • Start the editor without using configuration files:

nano --ignorercfiles

  • Open specific files, moving to the next file when closing the previous one:

nano {{path/to/file1 path/to/file2 ...}}

  • Open a file and position the cursor at a specific line and column:

nano +{{line}},{{column}} {{path/to/file}}

  • Open a file and enable soft wrapping:

nano --softwrap {{path/to/file}}

  • Open a file and indent new lines to the previous line's indentation:

nano --autoindent {{path/to/file}}

  • Open a file and create a backup file (path/to/file~) on save:

nano --backup {{path/to/file}}