See Sizes in Human Readable Format from the Command Line
The default behavior for most command line tools is to show sizes in bytes, for tiny text files that is fine but when you start working with larger items this becomes difficult to read and interpret. The solutions is fairly simple, pass a “human readable” flag with the command, which will convert bytes to a much more meaningful human readable format of kilobytes (kb) , megabytes (mb) , and gigabytes (gb).
Generally, seeing things as human readable is just a matter of passing an -h flag along with the command. Three prominent examples are with ls, du, and df:
Read on for some specifics about each:
ls – for the generic list command, you’ll need to attach -h to another flag, like -l:
df – displaying free disk space with df is infinitely more useful when viewed as human readable. While you can also use a lowercase -h the uppercase is even better on the eyes:
du – displaying disk usage for a specific file, folder, directory, or whatever, is made easier to interpret with -h
du -sh */