4/12/2018 - 3:17 PM


To find the largest files in disk: 
sudo du -a | sort -nr | head

To locate a file exactly: 
find . -type f -name "nameofthefile"

## Additional

This works quite better
du -cha --max-depth=1 / | grep -E "M|G"

If the \var folder is the problem, it is possible to hunt down the disk hog: 
du -cha --max-depth=1 /var | grep -E "M|G"

pmw2 management: 
pm2 flush # Clear all the logs
# rotate to not overpass 10M in the logs: 
pm2 install pm2-logrotate