cloc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cloc: command not found
or when using sudo you get the following error message
sudo: cloc: command not found
Solutions to cloc: command not found
How To Fix cloc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cloc is provided by cloc package.
cloc is:
Count physical lines of source code in the given files (may be archives such as compressed tarballs or zip files) and/or recursively below the given directories.
Counts blank lines, comment lines, and physical lines of source code in many programming languages. It is written entirely in Perl, using only modules from the standard distribution.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cloc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cloc.
sudo apt -y install cloc
Or if you have aptitude installed you can use the following command.
sudo aptitude install cloc
Summary
In this tutorial we learn how to fix cloc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.