Following are few options how it can be done:
1) du -sh *
2) find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
3) ls -lt tms-apc.sdr2011* | awk '{tot += $5} END {tot=((tot/1024)/1024)/1024 ; printf(" TOTAL SIZE (GB): %4.2f\n",tot)}'
Fastest way, use the following:
du -shx /var/log/* | grep G
No comments:
Post a Comment