In this short article, we would like to show how to print sizes for files and directories located in the current working directory using Bash.
Quick solution (run the following command):
du -hs *
-hcauses printing in human-readable format (KB, MB, GB, etc.),
-scauses printing total size summary for each element in the directory,
*causes checking size for each not hidden item in the current working directory.
3.3G pictures 9.0G backups 135M projects