Find large files/directories

List the 10 largest files in the working directory:

  ls -lS | head -10 

List the 10 largest files and print size in KB:

  ls -lS | head -10 | awk '{print $5/1024 "KB", $9}'

List files larger than 50 MB :

  find . -type f -size +50000k -exec ls -lh {} \; | awk '{print $9 " : " $5}'  

Find out the largest Directory :

  du -h | grep [0-9]G | sort -n -r  | head -5 

The above command will list the top 5 directories that occupy the most space in GB (if you want MB, replace [0-9]G with [0-9]M).