*nix: finding files

#finding anything over 2G
find $HOME -size -2000000b

Other commands
du -a /var | sort -n -r | head -n 5

for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11

du -cks * | sort -rn | head



#sort 5 largest files
find . -ls |sort -nrk7| head -5

No comments:

Post a Comment