diff --git a/pages/common/nano.md b/pages/common/nano.md index d586723d9..337bf652f 100644 --- a/pages/common/nano.md +++ b/pages/common/nano.md @@ -3,22 +3,26 @@ > Simple, easy to use command-line text editor. An enhanced, free Pico clone. > More information: . +- Open a new file in nano: + +`nano` + - Open a specific file: `nano {{path/to/file}}` -- Open a file positioning the cursor at the specified line and column: +- Open a specific file, positioning the cursor at the specified line and column: `nano +{{line}},{{column}} {{path/to/file}}` -- Enable smooth scrolling: +- Open a specific file and enable soft wrapping: -`nano -S {{filename}}` +`nano --softwrap {{path/to/file}}` -- Indent new lines to the previous lines' indentation: +- Open a specific file and indent new lines to the previous lines' indentation: -`nano -i {{filename}}` +`nano --autoindent {{path/to/file}}` -- Before modification, backup separately as `{{current_file_name}}~`: +- Open nano and create a backup file (`file~`) when saving edits: -`nano -B {{filename}}` +`nano --backup {{path/to/file}}`