cd /usr
du -sh * > /home/usrfilesize.log
-s display summary of each file
-h human readable
or check out this bash script to get folder size: http://quickbytesstuff.blogspot.sg/2...lder-size.html
Last edited by JJJCR; 06-12-2017 at 03:19 AM.
Reason: edit
|