IRC:nano [2019-10-27]


nano is a simple text-mode editor - although there are "nicer" gui-editors around - using nano has it's advantages:

To edit a file (or create a new one)

nano <file-name>

Where you replace <file-name> with the local filename or a relative/absolute file-path.

If <file-name> does not exist, it will be created on leaving nano

Use the cursor keys and PgUp PgDn to navigate through the file.

Important functions are listed at the bottom part with the according hotkeys:

^X denotes press CTRL+X (= eXit nano) M-/ denotes press ALT+/ (go to last line) for example.

^G will show the general help and does list all available hotkeys

Common samples are

nano ~/.bashrcedit the bash-resource file in the current users home-directory (aka ~)
nano ~/.profileedit the users .profile -file - used to 'export' session-global environment variables
sudo nano /etc/default/grubedit the main input/config-file for grub-menu as root

Related information

IRC:grubedit.htmedit kernel params on boot, common use-cases

© 1998-2020 by ORCUS® GmbH - (imprint) - we strictly do not track (period) - details: privacy - overview IRC: IRC support

note-1: not tracking does mean too - we are strictly NOT using direct external links within the content = we bother you having to copy&paste offered URLs