1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-18 07:55:47 +02:00

nano: update page; rnano: convert to alias (#16986)

This commit is contained in:
Lena 2025-06-27 06:08:56 +00:00 committed by GitHub
parent 9e1de5ad25
commit 301c97a09a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 21 deletions

View file

@ -1,21 +1,17 @@
# nano # nano
> Command-line text editor. An enhanced `Pico` clone. > Command-line text editor. An enhanced `pico` clone.
> See also: `pico`, `rnano`. > See also: `pico`, `rnano`.
> More information: <https://nano-editor.org>. > More information: <https://nano-editor.org/dist/latest/nano.html>.
- Start the editor: - Open specific files, moving to the next file after closing the previous one:
`nano` `nano {{path/to/file1 path/to/file2 ...}}`
- Start the editor without using configuration files: - Start the editor without using configuration files:
`nano {{[-I|--ignorercfiles]}}` `nano {{[-I|--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: - Open a file and position the cursor at a specific line and column:
`nano +{{line}},{{column}} {{path/to/file}}` `nano +{{line}},{{column}} {{path/to/file}}`
@ -32,6 +28,10 @@
`nano {{[-B|--backup]}} {{path/to/file}}` `nano {{[-B|--backup]}} {{path/to/file}}`
- Open a file in restricted mode (i.e. don't read/write to files not specified on the command-line):
`nano {{[-R|--restricted]}} {{path/to/file}}`
- Exit nano: - Exit nano:
`<Ctrl x>` `<Ctrl x>`

View file

@ -1,18 +1,8 @@
# rnano # rnano
> A restricted version of `nano`. > This command is an alias of `nano --restricted`.
> Command-line text editor with restricted drive access.
> See also: `nano`.
> More information: <https://manned.org/rnano>. > More information: <https://manned.org/rnano>.
- Start the editor: - View documentation for the original command:
`rnano` `tldr nano`
- Open a specific file:
`rnano {{path/to/file}}`
- Display help:
`rnano {{[-h|--help]}}`