Several command line tools use the -h or --human-readable option to print file size in a human readable format (i.e., 36G vs 37550836).
- Why is this option needed and not the default?
- Aren't these tools mainly for output to humans?
|
Several command line tools use the
|
|||
|
|
|
|||||||||||||||||||
|
|
Note that if you set BLOCKSIZE=human-readable in your environment, this will be the default, at least for the commands from GNU coreutils, i.e. if you're using bash put:
in your $HOME/.bashrc file. |
||||
|
Beside what Gilles said: When these tools where invented hdd was very small, compared with today. You didn't need help to read a number like 400000. And if you don't like it, use the alias system. In your home directory,
and insert, for example:
Note that in contrast to many other languages, you aren't allowed to have a blank before or behind the assignment operator (equal sign). |
||||
|
|