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.
Recent Comments