How can I perform a cleanup on ubuntu server?

January 19, 2016 2.1k views
Server Optimization Caching Ubuntu

Is it possible to do a "cleanup" on a Ubuntu server? I am thinking about temporary files and folders, log files etc. which can take up space.

My server was using 94% of the available storage, and after I shut it off and upgraded to double storage it was using 20%, which makes me believe that there is/was some temp files/folder that got deleted on the restart?

1 Answer

That's possible, yes. Most (if not all) of the log files are stored in /var/log. I'd recommend using a program like ncdu, which can be installed using apt-get, to see what's taking up a lot of space and maybe delete some of them.

Have another answer? Share your knowledge.