Units
pls
can show the sizes of files in three unit systems.
- binary, which uses higher powers of 2 such as 210 as kibi (Ki), 220 as mibi (Mi) etc.
- decimal, which users higher powers of 10 such as 103 as kilo (k), 106 as mega (M) etc.
- none, which lists the exact number of bytes (B) as is.
Arguments
--unit
/-u
can be used to set the unit system to use. pls
uses the binary
unit system by default.
Examples
Size Name 1.0 MiB a 1.0 MiB b 1.0 MiB c
Size Name 1.0 MB a 1.0 MB b 1.0 MB c
Size Name 1048589 B a 1048589 B b 1048589 B c
Configuration
Using the configuration system, you can modify the appearance of size magnitude, prefix and base unit.
See the detail view configuration for an example.