Loading

# Tips command find big

  1. ## find top 10 big file:
  2. # find /var/log/ -type f -exec du -s {} \; | sort -n | tail -n 10
  3. #alias findtop="perl -e'%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -h`;die@h{sort%h}'"
  4.  
  5.  
  6. alias findintopfile="du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh"
  7. alias findintop="du -hs * | sort -hr"
  8. alias findt10='find /var/log/ -type f -exec du -s {} \; | sort -n | tail -n 10'
  9. alias findt20='find /var/log/ -type f -exec du -s {} \; | sort -n | tail -n $HeadVarX'
  10. alias findbigfiletop20='find /var/log/ -type f -exec du -s {} \; | sort -n | tail -n $HeadVarX'
  11. alias find_file="find . -name "
  12. alias find_text="find .  -type f | xargs grep "

Comments