Jun 18, 2011
Sample Script to Report /home Directory Usage
Keep an eye out for crazy numbers because I'm seeing differences in the way the find and du commands report, depending on their versions. So if you see some weird reporting situation, let me know so I can address the problem.
Using user quotas on server would probably be just as effective but what can I say, I like a challenge.
Note: before you light your torches, I don't claim to be a bash scripting expert (not yet anyways). So if anyone has any "constructive" criticism, please feel free to leave a comment.
The script is GPL (of course), so please feel free to use any part of it (or the whole thing) as you wish.
Here's a link to download the file: