find the largest directories in a Unix shell


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #the entire filesystem, starting at '/'
  2. du -a /* | sort -n -r | head -n 10
  3.  
  4. #or for a particular directory:
  5. du -a /home/username/ | sort -n -r | head -n 10

Report this snippet


Comments


You need to login to view comments.