bcal

Command-line utility for storage conversions and calculations

Install

All systems
curl cmd.cat/bcal.sh
Debian Debian
apt-get install bcal
Ubuntu
apt-get install bcal
image/svg+xml Kali Linux
apt-get install bcal
Fedora
dnf install bcal
Windows (WSL2)
sudo apt-get update sudo apt-get install bcal
OS X
brew install bcal

bcal

Command-line utility for storage conversions and calculations

Feature - convert to IEC/SI standard data storage units - show the address in bytes - show address as LBA:OFFSET - convert CHS to LBA and vice versa - show binary, decimal and hex representation of a number - custom sector size, max heads/cylinder and max sectors/track - minimal dependencies