Re: deleting log files
Originally Posted by
rockerphil
ok, here's the deal. i'm currently working with minimal HDD space (a little under 50 GB), so i'm always looking for ways to free up space. so i started poking around and i'm wondering if it's safe to delete everything in /var/log, and if not, what IS safe to delete. also, any other suggestions on safely freeing up HDD space is greatly appreciated. so far i know of these commands:
Code:
sudo apt-get autoremove
sudo apt-get autoclean
much thanks in advance,
Phil
First, I'd be surprised to see you free up as much as 2 GB of space from dumping logfiles.
Second, if you insist on doing this, be aware that many of the files in question are system files, and as such are owned by root. This means invoking the hazardous rm command with root privileges.
Personally, I'd look into log rotation or some other option to keep the size down.
Or better yet, install /var on it's own (smallish) partition, like the real sysadmins do...
eeeeeeeeeeeeeeeebuntu user!
Registered Linux User #386750
chown -R us base
Bookmarks