diff --git a/pages/common/nano.md b/pages/common/nano.md index 788678023d..d5b9ff7322 100644 --- a/pages/common/nano.md +++ b/pages/common/nano.md @@ -1,21 +1,17 @@ # nano -> Command-line text editor. An enhanced `Pico` clone. +> Command-line text editor. An enhanced `pico` clone. > See also: `pico`, `rnano`. -> More information: . +> More information: . -- 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: `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: `nano +{{line}},{{column}} {{path/to/file}}` @@ -32,6 +28,10 @@ `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: `` diff --git a/pages/common/rnano.md b/pages/common/rnano.md index 9192bd8369..06f61efd5d 100644 --- a/pages/common/rnano.md +++ b/pages/common/rnano.md @@ -1,18 +1,8 @@ # rnano -> A restricted version of `nano`. -> Command-line text editor with restricted drive access. -> See also: `nano`. +> This command is an alias of `nano --restricted`. > More information: . -- Start the editor: +- View documentation for the original command: -`rnano` - -- Open a specific file: - -`rnano {{path/to/file}}` - -- Display help: - -`rnano {{[-h|--help]}}` +`tldr nano`