Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2913076
cleanup-var-crap.sh
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bd808
Nov 4 2015, 4:13 AM
2015-11-04 04:13:56 (UTC+0)
Size
295 B
Referenced Files
None
Subscribers
None
cleanup-var-crap.sh
View Options
#!/usr/bin/env bash
# Get rid of crap that clutters up /var which is a rediculously tiny partiion
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
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2924336
Default Alt Text
cleanup-var-crap.sh (295 B)
Attached To
Mode
P2273 cleanup-var-crap.sh
Attached
Detach File
Event Timeline
Log In to Comment