Thursday, March 26, 2009

Linux: sort your folder by size

In case you need to sort your folders by size, in Linux, you can use the following command:

du --max-depth=1 /home/ | sort -n -r

of course replace '/home/' with your desired folder.

No comments:

Post a Comment