Byte Calculator in short Bcal is a REPL command line storage expression and evaluation tool for Linux. It comes with SI/IEC conversion, byte address calculation, base conversion, LBA/CHS calculation, general-purpose numerical calculations, piped input, file redirection, interactive mode, custom sector size and many more.
How to Install Bcal on Ubuntu
To install Bcal on your Ubuntu Linux system, run below command.
sudo apt install bcal
Bcal Usage Details:
For the complete usage and help details run below commands.
bcal -h
man bcal
How to evaluate arithmetic expression of storage units using Bcal:
bcal "(6kb+3mb)/3"
How to convert storage capacity to other units and get address, LBA using Bcal:
bcal 20140115 b
How to convert LBA to CHS using Bcal:
bcal -f l600
How to show binary, decimal and hex representations of a number using Bcal:
bcal -c 20140115
How to use Bcal as a general-purpose calculator?
bcal -b