Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
nano Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`