Friday, May 20, 2011

Find Files

Find just directory

find . -type d -name xxxx

Find top 10 largest files

du -ks xxxxdirxxxx | sort -n -r | head -n 10

find . -type f -printf ‘%s %p\n’ |sort -nr|head -10

du -xak .|sort -n|tail -10

No comments:

Post a Comment