Written by
Steph & JLB
on
77 words - One minute to read
on
77 words - One minute to read
Linux - Sorting folders by size
The problem
- JL : Steph, your filesystem is almost full on
bikette04
, more than 95% already!! - Steph: oh gosh, I don’t even remember what’s on this server…
So, how do you identify, what’s consuming all of the file system in less than 30sec ?
The solution
When you’re not in the mood for googling, and most importantly there’s a JLB around, you just ask and boom:
cd /
du -sch * | sort -h
Don’t thank me.