cg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cg: command not found
or when using sudo you get the following error message
sudo: cg: command not found
Solutions to cg: command not found
How To Fix cg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cg is provided by cgvg package.
cgvg is:
cgvg is a pair of Perl scripts (“cg” and “vg”) which are meant to assist a programmer in doing command-line source browsing.
The idea is you can easily search for keywords in the code, and jump to the file and line where a match is found. Used with ctags(1), this can really help with jumping around and following code. Some features include a human-readable output, coloring, bold (and alternate bolding), and just sheer convenience for a programmer.
cgvg uses the Perl internal find and does its own searching, rather than being a wrapper for UNIX find(1) and grep(1). There is a ~/.cgvgrc file for per-user configuration, and some nice features like coloring, and multiple log files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cgvg
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cgvg.
sudo apt -y install cgvg
Or if you have aptitude installed you can use the following command.
sudo aptitude install cgvg
Summary
In this tutorial we learn how to fix cg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.