Nano is a simple, user-friendly text editor for Unix-like systems. It is designed to be easy to use for both beginners and experienced users. Nano is often pre-installed on many Linux distributions, making it a convenient choice for quick text editing tasks.
.nanorc
file.nano filename
Ctrl + O
Ctrl + X
Ctrl + K
Ctrl + U
Ctrl + W
Nano is typically included by default in many Linux distributions. However, if it is not installed, you can install it using the package manager for your distribution:
sudo apt-get install nano
sudo yum install nano
sudo dnf install nano
sudo pacman -S nano
Nano can be customized by editing the .nanorc
file, which is usually located in the user’s home directory. Here are some common customizations:
include "/usr/share/nano/*.nanorc"
to your .nanorc
file.set tabsize 4
to your .nanorc
file to set the tab size to 4 spaces.set linenumbers
to your .nanorc
file to display line numbers.For more information, you can refer to the Nano documentation.