Page MenuHomePhabricator

cleanup-var-crap.sh

Authored By
bd808
Nov 4 2015, 4:14 AM
Size
296 B
Referenced Files
None
Subscribers
None

cleanup-var-crap.sh

#!/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

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2924338
Default Alt Text
cleanup-var-crap.sh (296 B)

Event Timeline