DEV Community 👩‍💻👨‍💻

Discussion on: The day our web server reached 100% capacity 💾

therealkevinard profile image
Kevin Ard • Edited on

Oh another one for clearing du, if you're logrotating and don't need the archives: find /var/log -type f -name "*.gz" -exec "rm -f {} ;"

I typed that on mobile, please don't copy paste lol.

Finds all the rotated .gz logs and nukes em - those add up to A LOT (esp if you're running mod_security lol)