Do you ever suffer diskspace not enough error? If you had, what you should be doing next? How to find the large file? Well, there is no single command to do it, but there is a way. With the help of find command will do the trick easily.
List All Large Files
To finds all files over 50,000KB (50MB+) in size and display their names, along with size, use following syntax:
Syntax for RedHat / CentOS / Fedora Linux
$ find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’
Search or find big files Linux (50MB) in current directory:
$ find . -type f -size +50000k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’
Search in my /var/log directory:
# find /var/log -type f -size +50000k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’
Syntax for Debian / Ubuntu Linux
$ find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} ; | awk ‘{ print $8 “: ” $5 }’
Search in current directory:
$ find . -type f -size +10000k -exec ls -lh {} ; | awk ‘{ print $8 “: ” $5 }’
Good Luck~

