Ever need to find which files are taking up the most room on your server in a particular directory?
If so – you can easily find the largest files by running the following command:
find -type f | xargs -I{} du -s "{}" | sort -rn | head -10 | cut -f2 | xargs -I{} du -sh "{}"
* You set the number of files you want to see by changing the number where I used 10.