nnn command not found

In this troubleshooting guide we learn how to fix nnn command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nnn: command not found

or when using sudo you get the following error message

sudo: nnn: command not found

Solutions to nnn: command not found

How To Fix nnn: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nnn is provided by nnn package.

nnn is:

nnn is a fork of noice, a blazing-fast lightweight terminal file manager with easy keyboard shortcuts for navigation, opening files and running tasks. nnn toppings

  • Show details of the currently selected file (stat, file)
  • Disk usage analyzer mode (within the same fs, doesn’t follow symlinks)
  • Directories first (even with sorting)
  • Sort numeric names in numeric order
  • Case-insensitive alphabetic content listing instead of upper case first
  • Key - to jump to last visited directory
  • Roll over at the first and last entries of a directory
  • Removed navigation restriction with relative paths
  • Sort entries by file size (largest to smallest)
  • Shortcut to invoke file name copier

To fix this problem, we can install more using the command below.

sudo apt-get -y install nnn

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nnn.

sudo apt -y install nnn

Or if you have aptitude installed you can use the following command.

sudo aptitude install nnn

Summary

In this tutorial we learn how to fix nnn command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.