Frequently I need to check the space of user folders on our file server. The easiest way to do that is to use the du command (Disk Usage). I change directory to the parent folder and then run du with the -d (depth) flag to summarize one level deep.
cd /userhomeshare
du -kd1
You can use that with a pipe or redirect
du -kd1 >> file.txt
du -kd1 | mail chris@mydomain.com
Update – if you want to check the size of everyone’s movie directory:
du -kd0 -h /userhomepath/*/Movies

