Advertisement
pebriana

find and short

Jun 2nd, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ####
  2. for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11
  3.  
  4.  
  5.  
  6. ## Warning: only works with GNU find ##
  7. find /path/to/dir/ -printf '%s %p\n'| sort -nr | head -10
  8. find . -printf '%s %p\n'| sort -nr | head -10
  9.  
  10.  
  11.  
  12. http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement