Applications on Ubuntu use different file size units. Binary units are multiples of 1024, whereas decimal units are multiples of 1000.
Which applications on Ubuntu use which system?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Before reading this answer, make sure you understand what the different units and the different systems are. This is a quick reminder.
The IEC units are 1KiB (1024 bytes), 1MiB, 1GiB and so on. The SI units are 1kB (1000 bytes), 1MB, 1GB and so on. Ubuntu's unit policy mandates that IEC and SI units be used only.
The traditional units are 1KB (1024 bytes), 1MB, 1 GB and so on. Ubuntu's unit policy only allows using them for backwards compatability.
I'm making this answer a community wiki, so please add applications to the list and keep it up-to-date!
lsuses the traditional system, but has an
duuses the traditional system, but has an
dfuses the traditional system, but has an
fdiskuses the traditional system
fparteduses the traditional system
lvextendand other commands belonging to the LVM allow you to choose between binary and decimal units, depending on whether you use lower-case or upper-case letters. See the man page for
lvs, for example. The man pages aren't as clear as they could be. (bug report)