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
pls --det=size # or --unit=binary or --u=binary Size Name1.0 MiB a1.0 MiB b1.0 MiB cpls --det=size --unit=decimal # or --u=decimal Size Name1.0 MB a1.0 MB b1.0 MB cpls --det=size --unit=none # or --u=binary Size Name1048589 B a1048589 B b1048589 B cConfiguration
Using the configuration system, you can modify the appearance of size magnitude, prefix and base unit.
See the detail view configuration for an example.