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 mebi (Mi) etc.
- decimal, which uses 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
Section titled “Arguments”--unit/-u can be used to set the unit system to use. pls uses the binary unit system by
default.
Examples
Section titled “Examples”pls --det=size # or --unit=binary or -u=binary Size Name14.0 B a 1.0 KiB b 1.0 MiB cpls --det=size --unit=decimal # or -u=decimal Size Name14.0 B a 1.0 kB b 1.0 MB cpls --det=size --unit=none # or -u=none Size Name 14 B a 1037 B b1048589 B cConfiguration
Section titled “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.