du -ax –max-depth 1 /var/cpanel | sort -n | tail This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order. Once you find the big folder then [...]
Tracking down the biggest folders
August 11th, 2011 by EZ linux · No Comments
Tags: Cheat Sheets · Cpanel and WHM · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks
Sort and find a directory size
September 2nd, 2009 by EZ linux · 1 Comment
The easiest and fastest way is: du -sh * But if you want to search recursively and display in order you need this one: du -h –max-depth=1 /home/ | sort -n -r And if you want even more depth try: du -s ./* | sort -n| cut -f 2-|xargs -i du -sh {} I recommend [...]
Tags: Linux Commands
