November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

find large files on Linux

Find large files on Fedora / CentOS / RHEL

Search for big files (50MB or more) on your current directory:

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

Output:

[root@my.server.com:~]pwd
/home

[root@my.server.com:~]find . -type f -size +50000k -exec ls -lh {} ; | awk '{ print $9 ": " $5 }'
./user1/tmp/analog/cache: 79M
./syscall8/public_html/wp.zip: 146M
./bob54/public_html/adserver/var/debug.log: 86M
./marqu35/logs/adserver.site.com-May-2014.gz: 70M
./astrolab72/tmp/analog/cache: 75M

Search in my /var directory for 80MB or max file size:

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

Find large files on Debian / Ubuntu Linux

Search in current directory:

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

Search the /home directory:

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

If you know other ways to quickly find large files on Linux please share it with us.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>