In a previous IT life I was performing junior linux admin duties where I found du -h --max-depth=1
to be very handy when tracking down whatever happened to be causing those pesky disk space alerts we all hate. In my more recent IT life, the tool of choice is TreeSize however not every client has a license or has the app installed on their various servers. I wanted something as fast as possible while still being light weight. This function took around 4 hours to ‘scan’ a network share which was over 4TB and around 20 million files, TreeSize beat this function by about 10 minutes.
A quick google shows a heap of people have come up with basically the same thing. How cool is that. Continue reading “Show me what you got – Summarise directory size”