Find Largest Files (UNIX)

HOWTOs

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.

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stuff

DespairWear

Sometimes you just need a new t-shirt…http://www.despair.com/despairwear.html

Workouts

Challenge Yourself Workout

Both in work and life – it is best to keep things simple. You do not need a fancy gym with expensive equipment to get in great shape! Here is a great workout I did recently with simple moves – but will surely challenge you.