Page MenuHomePhabricator
Paste P2273

cleanup-var-crap.sh
ActivePublic

Authored by bd808 on Nov 4 2015, 4:13 AM.
Referenced Files
F2913078: cleanup-var-crap.sh
Nov 4 2015, 4:14 AM
F2913076: cleanup-var-crap.sh
Nov 4 2015, 4:13 AM
Subscribers
None
#!/usr/bin/env bash
# Get rid of crap that clutters up /var which is a ridiculously tiny partition
df -h /var
sudo apt-get clean
sudo /etc/cron.daily/acct
sudo rm /var/log/account/pacct.?*
sudo rm /var/log/atop.log.?
sudo rm /var/log/*.??.gz
sudo sh -c "rm /var/log/apache2/*.??.gz"
df -h /var

Event Timeline

bd808 changed the title of this paste from untitled to cleanup-var-crap.sh.
bd808 updated the paste's language from autodetect to autodetect.
bd808 edited the content of this paste. (Show Details)