If you are getting error “bc command is not found” means that the bc package is not installed on you Linux distro. The bc command is a utility for performing arbitrary-precision arithmetic in the command line.
How to Fix error “bc command is not found”
For Debian / Ubuntu based distro run the command given below
sudo apt install bc
or
sudo apt-get install bc
For Red hat based like Fedora based distro run the command given below
sudo dnf install bc
or
sudo yum install bc
For OpenSuse run the command given below
sudo zypper install bc
For Arch based distro like Manjaro, Garuda … , run command
sudo pacman -S bc