Please Consider

I run a few websites and used to make enough to keep them going with Adverts. Since Adblockers became popular that income is gone. If you like my content, please consider buying me a coffee. Thank you for your support!

Buy Me A Coffee

August 26, 2017

UNIX - Specify file and disk size output

If you want df, ls or du and other commands to display disk sizes in kilobytes instead of 512 byte blocks, set BLOCKSIZE in your environment to ‘K’. You can also use ‘M’ for Megabytes or ‘G’ for Gigabytes. If you want them to automatically select the best size then use df -h for example.

© Arnold Greyling 2025