Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I have 9.5 GB of log files and would like to clear them from my system and keep that much stuff from being created, how do I do this?

Here is the output from sudo du -sh /var/* ~/.xsession-errors:

13M /var/backups
204M    /var/cache
112M    /var/crash
4.0K    /var/games
503M    /var/lib
4.0K    /var/local
0       /var/lock
9.5G    /var/log
85M     /var/mail
4.0K    /var/metrics
24K     /var/opt
0       /var/run
1.7M    /var/spool
391M    /var/tmp
11G     /var/tvmobili
20K     /var/www
224K    /home/school/.xsession-errors
share|improve this question

marked as duplicate by con-f-use, Flimm, Basharat Sialvi, Kevin Bowen, Eric Carvalho Apr 4 '13 at 12:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What is making your logs grow to that size? That seems a bit excessive. –  Simplexion Apr 4 '13 at 5:10
add comment

1 Answer 1

up vote 3 down vote accepted

Two programs work great in cleaning: Ubunutu Tweak and Bleachbit. The first is user-friendly and therefore less dangerous and therefore less powerful. The second can break your system but if you know what you're doing can be really useful.

Good luck

share|improve this answer
    
I happen to use bleachbit myself for general stuff, but I also have a script do delete logs... This previous post is useful askubuntu.com/questions/171678/… –  Scott Goodgame Apr 4 '13 at 6:01
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.