I needed this command today when my disk ran out of space:
sudo rm `sudo find /var/log -name ‘*.log.*’` -f
The command will delete every file that matches the pattern *.log.*.
Enjoy!
A place where I can put my code and discuss big data.
I needed this command today when my disk ran out of space:
sudo rm `sudo find /var/log -name ‘*.log.*’` -f
The command will delete every file that matches the pattern *.log.*.
Enjoy!