We have already discussed Cleaning up a Ubuntu GNU/Linux system and this tutorial is updated with new ubuntu versions and more tools added.
If you want to clean your ubuntu machine you need to follow these simple steps to remove all unnecessary junk files.
Remove partial packages
This is yet another built-in feature, but this time it is not used in Synaptic Package Manager. It is used in the Terminal. Now, in the Terminal, key in the following command
sudo apt-get autoclean
Then enact the package clean command. What this commnad does is to clean remove .deb packages that apt caches when you install/update programs. To use the clean command type the following in a terminal window:
sudo apt-get clean
You can then use the autoremove command...Read More