Some Find commands regularly used for finding disk usage


find . -size +500000 -print

du -ch | grep total ( total size of directory)

du -sk * | sort -nr | head -3

find /home -type f | xargs ls -s | sort -rn | awk '{size=$1/1024; printf("%dMb %s\n", size,$2);}' | head

find / -type f -size +300000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

du -hs /home/* | grep G

du -hs /home/* | grep M

No comments: