nano — a simple console editor
cheat sheet · GNU nano https://lab.dimsanych.ru/en/wiki/nano/Cheat sheet
-
nano fileopen/create a file -
sudo nano /etc/hostsedit a system file -
nano +25 fileopen positioned at line 25 -
nano -w filedon't wrap long lines -
Ctrl+O save Ctrl+X quit -
Ctrl+W search Ctrl+\ replace -
Ctrl+K cut a line Ctrl+U paste Ctrl+6 select
Options
Globally — /etc/nanorc. Highlighting for many formats works out of the
box.