lgrep command not found

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

Introduction

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

lgrep: command not found

or when using sudo you get the following error message

sudo: lgrep: command not found

Solutions to lgrep: command not found

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

In Ubuntu lgrep is provided by lv package.

lv is:

lv is a powerful file viewer like less. lv can decode and encode multilingual streams through many coding systems: ISO-8859, ISO-2022, EUC, SJIS, Big5, HZ, Unicode.

It recognizes multi-bytes patterns as regular expressions, lv also provides multilingual grep. In addition, lv can recognize ANSI escape sequences for text decoration.

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

sudo apt-get -y install lv

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

You can also use apt command to install lv.

sudo apt -y install lv

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

sudo aptitude install lv

Summary

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