Originally Posted by Satyaveer Arya
You can also check with the help of Disk Usage Analyzer. In Gnome it is under Applications --> Accessories --> Disk Usage Analyzer.
That is simply a graphical interface that runs the du command for you. It is more resource intensive(barely) as it uses the x windows system but sam_nyc did state he wants a monthly print out and email automatically.
Try a basic script such as below set up on a monthly cron job and modify it for your needs.
This is a simply for loop but you can make it a better script by doing it in a few different ways, I'm just a bit lazy right now.
for homedir in $(ls -d /home/*); do du -sh $homedir >> /tmp/$(date +%m-%d-%Y)-home-directory-sizes.txt; done
SUBJECT=$(date +%m-%d-%Y) Home Directory Usage
/bin/mail -s "$SUBJECT" "$SENDTO" < $EMAILMESSAGE
Set it up as a cron job around 11 P.M. and redirect the output to /dev/null or a text file for logging if you need it. Do not set this up to run at midnight as the date will be different once the du's complete and cause the email to not send correctly.