Skip to content

Commit 301c97a

Browse files
authored
nano: update page; rnano: convert to alias (#16986)
1 parent 9e1de5a commit 301c97a

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

pages/common/nano.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
# nano
22

3-
> Command-line text editor. An enhanced `Pico` clone.
3+
> Command-line text editor. An enhanced `pico` clone.
44
> See also: `pico`, `rnano`.
5-
> More information: <https://nano-editor.org>.
5+
> More information: <https://nano-editor.org/dist/latest/nano.html>.
66
7-
- Start the editor:
7+
- Open specific files, moving to the next file after closing the previous one:
88

9-
`nano`
9+
`nano {{path/to/file1 path/to/file2 ...}}`
1010

1111
- Start the editor without using configuration files:
1212

1313
`nano {{[-I|--ignorercfiles]}}`
1414

15-
- Open specific files, moving to the next file when closing the previous one:
16-
17-
`nano {{path/to/file1 path/to/file2 ...}}`
18-
1915
- Open a file and position the cursor at a specific line and column:
2016

2117
`nano +{{line}},{{column}} {{path/to/file}}`
@@ -32,6 +28,10 @@
3228

3329
`nano {{[-B|--backup]}} {{path/to/file}}`
3430

31+
- Open a file in restricted mode (i.e. don't read/write to files not specified on the command-line):
32+
33+
`nano {{[-R|--restricted]}} {{path/to/file}}`
34+
3535
- Exit nano:
3636

3737
`<Ctrl x>`

pages/common/rnano.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
# rnano
22

3-
> A restricted version of `nano`.
4-
> Command-line text editor with restricted drive access.
5-
> See also: `nano`.
3+
> This command is an alias of `nano --restricted`.
64
> More information: <https://manned.org/rnano>.
75
8-
- Start the editor:
6+
- View documentation for the original command:
97

10-
`rnano`
11-
12-
- Open a specific file:
13-
14-
`rnano {{path/to/file}}`
15-
16-
- Display help:
17-
18-
`rnano {{[-h|--help]}}`
8+
`tldr nano`

0 commit comments

Comments
 (0)