Friday, November 14, 2014

Check File With High Disk Usage On Debian / Ubuntu

In server with limited disk space, high size file is very annoying if we can not find what file it is. So this command will show you what file that has high size
find / -type f -size +10000k -exec ls -lh {} \
"/" show that it will search in the root directory and 10000k means that the file must have > 10.000k (10MB) in size. You can change it based on your need.

Source:
http://www.cyberciti.biz/faq/find-large-files-linux/