How to find large files recursively

written by Admin


Posted on 2012-12-18


Problem

I must find all large files in a directory and all subdirectories recursively.

Solution

You use the shell command:
find . -size +<size>[k|m|g] -exec du -h {} \;

...then, for files bigger than 20Mb, you type:
find . -size +20000k -exec du -h {} \;

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!