How to Find or installing nano on Linux ?




🧩 Step 1: Check if Nano is already installed

Open your terminal and run:

nano --version
  • If Nano is installed, you’ll see version information (like GNU nano, version 6.4).

  • If it’s not installed, you’ll see an error such as:
    bash: nano: command not found


🧰 Step 2: Install Nano (based on your Linux distribution)

🐧 Ubuntu / Debian / Linux Mint

sudo apt update
sudo apt install nano -y

🧱 Fedora

sudo dnf install nano -y

💿 CentOS / RHEL

sudo yum install nano -y

On newer RHEL versions (8+), you can use dnf instead of yum.

🧩 Arch Linux / Manjaro

sudo pacman -S nano

🐙 openSUSE

sudo zypper install nano

⚙️ Step 3: Verify installation

After installation, confirm again:

nano --version

If it prints version info — you’re all set!


💡 Optional: Make Nano the default editor

If you want Nano to open automatically for things like git commit messages or crontab -e, set it as the default editor:

export EDITOR=nano

To make this permanent, add the above line to your ~/.bashrc or ~/.zshrc.


Enjoy! Follow us for more... 

No comments:

Post a Comment

How to Find or installing nano on Linux ?

🧩 Step 1: Check if Nano is already installed Open your terminal and run: nano --version If Nano is installed, you’ll see version inf...