Everyone who has a PC knows what “Working Slowly” is and it is very boring. This is the worst for developers, because every developer likes faster machines, and wants to keep them there, but not everything is the way you want it to be. Here are some ways to clean up your Ubuntu PC and make it run faster.
1. Clean your package installation
If you have installed and uninstalled a lot of applications, it is likely that your system is infected with a lot of dependency files that you absolutely do not need.
Partial package cleaning:
sudo apt-get autoclean
Cleaning the apt cache:
sudo apt-get clean
Cleaning up all unused dependencies:
sudo apt-get autoremove
If you want to remove an installed app, you can remove it like this:
sudo apt-get autoremove application_name
2. Remove the orphan package
Besides dependency files, packages can also become orphaned when you uninstall an application. To get rid of orphaned files, we can use gtkorphan, a GUI for deborphan.
Install gtkorphan or through the terminal
3. Delete the locale files
Unless you need to change regional settings at any time, you can uninstall unused locale and free up storage space on your system.
Install localepurge, or via the terminal
4. Analyze your disk usage Ubuntu
The first thing to do is find out which files are consuming the most storage space on your hard drive. Go to Applications-> Accessories-> Disk Usage Analyzer and click on the scan file system at the top to analyze it. You will be able to instantly see which files / folders are taking up the bulk of the volume.
Once you have determined which files are taking up significant storage space, you can do the following:
a) Decide if you are using the files. Otherwise, send them to the trash.
b) If you do not use the file immediately, but need to refer to it later, either on a CD / DVD or on an external hard drive. If the file is too big, you can compress it and split it into several small files for easier storage.