lnav command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lnav: command not found
or when using sudo you get the following error message
sudo: lnav: command not found
Solutions to lnav: command not found
How To Fix lnav: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lnav is provided by lnav package.
lnav is:
The log file navigator, lnav, is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file. It is hoped that these features will allow the user to quickly and efficiently zero in on problems.
To fix this problem, we can install more using the command below.
sudo apt-get -y install lnav
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install lnav.
sudo apt -y install lnav
Or if you have aptitude installed you can use the following command.
sudo aptitude install lnav
Summary
In this tutorial we learn how to fix lnav command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.