Find Big File Size on Linux
When finding customer’s VPS or Dedicated Server (DS) nearly full or already full, you need this command to find out which directory and what files that eat most of disk.
We can start to search the big files within the log folder. We can start find with at least 10 MB file size. Yes, you can modify on your own. ie. 100 MB, 200 MB etc.
find /var/log/ -type f -size +10M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Plesk
If the server under Plesk environment, you can start to search these area :
find /root -type f -size +100M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
find /var/www/vhosts/ -type f -size +100M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
cPanel
If the server under cPanel environment :
find /home -type f -size +100M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
You can improving the search area on your own and increase the size limit search of the file. ie. replacing 100M to 1G.
