Find large files in Linux

After some time you may find your server starts to fill up with backups and other files and this will ultimately bring your server down when you run out of usable space.

I use the following code to search for these large files, once you know where the largest file offenders are you can then decide whether you need them or if they are safe to delete.

find / -type f -size +100M | xargs du -sh

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

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