2015-12-30 19:31:49 +00:00
|
|
|
# nano
|
|
|
|
|
2020-01-29 15:16:44 +00:00
|
|
|
> Simple, easy to use command-line text editor. An enhanced, free Pico clone.
|
2019-06-04 10:00:05 +01:00
|
|
|
> More information: <https://nano-editor.org>.
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2020-01-29 15:16:44 +00:00
|
|
|
- Open a specific file:
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2020-01-29 15:16:44 +00:00
|
|
|
`nano {{path/to/file}}`
|
|
|
|
|
|
|
|
- Open a file positioning the cursor at the specified line and column:
|
|
|
|
|
|
|
|
`nano +{{line}},{{column}} {{path/to/file}}`
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2016-01-19 13:11:20 +00:00
|
|
|
- Enable smooth scrolling:
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2015-12-31 00:01:15 +00:00
|
|
|
`nano -S {{filename}}`
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2016-01-19 13:11:20 +00:00
|
|
|
- Indent new lines to the previous lines' indentation:
|
2015-12-30 19:31:49 +00:00
|
|
|
|
2015-12-31 00:01:15 +00:00
|
|
|
`nano -i {{filename}}`
|
2020-10-05 14:56:27 +01:00
|
|
|
|
|
|
|
- Before modification, backup separately as `{{current_file_name}}~`:
|
|
|
|
|
|
|
|
`nano -B {{filename}}`
|