find all large files on Centos/Red Hat/Fedora

Quick and handy way to find all files in a particular directory.

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

The same command on Ubuntu is:

find /home/ -type f -size +5000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' 

You can replace the “5000″ above with a number of your choosing. The example above finds all files larger than 5 Megabytes.

If you just want to find a particular filename try:

find | grep searchterm

where searchterm contains the part or all of the filename that you are looking for.

2 Responses to “find all large files on Centos/Red Hat/Fedora”

Leave a Reply

Consulting

I'm currently available
for Lotus Notes / Domino consulting engagements.

LinkedIn

Connect with me:

LinkedIn

Advertisement
Advertisement
Categories