Paste P2273

cleanup-var-crap.sh
ActivePublic

Authored by bd808 on Nov 4 2015, 4:13 AM.
1#!/usr/bin/env bash
2# Get rid of crap that clutters up /var which is a ridiculously tiny partition
3
4​df -h /var
5
6​sudo apt-get clean
7​sudo /etc/cron.daily/acct
8​sudo rm /var/log/account/pacct.?*
9​sudo rm /var/log/atop.log.?
10​sudo rm /var/log/*.??.gz
11​sudo sh -c "rm /var/log/apache2/*.??.gz"
12
13​df -h /var
bd808 edited the content of this paste. (Show Details)Nov 4 2015, 4:13 AM
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)