Comment

Anonymous

Thanks, I was looking for a quick copy/paste blog entry to help me find the largest directories on my 4G compact flash that runs as "SSD".

Since the laptop is quite slow and low on memory, I altered your line a bit:

du -h /|grep M|sort -nr|head -15

du -h to have readable output
grep M to prevent sorting large numbersK
head instead of tail so that it doesn't have sort more than necessary
sort -r to reverse the order for head