5 Ways to Keep Your Ubuntu System Clean

Last Updated : 19 Feb, 2020
Linux has it's own data management system that cleans your computer under the belt but still, sometimes we need to know how to manually initiate disk cleaning and control processes to enhance your computer's performance. Below are 5 ways to keep the ubuntu system clean. 1. Uninstalling and Removing Unnecessary Applications: To uninstall the application you can you simple command.
$ sudo apt remove [application name..]..
Uninstalling and Removing Unnecessary Applications - 1 Press "Y" and Enter. If you don't want to use the command line, you can use the Ubuntu Software manager. Just click on the remove button and the application will be removed. Uninstalling and Removing Unnecessary Applications - 2 2. Removing Unnecessary Packages and Dependencies: After removing certain apps and packages some data is left which needs to be clean for that just use command.
$ sudo apt autoremove
Removing Unnecessary Packages and Dependencies 3. Removing Old Kernels From System: To list all kernels you can use the command
$ sudo dpkg --list 'linux-image*'
Removing Old Kernels From System And you can remove any of this kernel by command
$ sudo apt-get remove linux-image-VERSION
Choose any version you want to remove and press Enter. 4. Cleaning Apt Cache: APT generates a cache of install apps and keeps them in your /var/cache/apt/archives directory even after those apps have been uninstalled. To check the amount of apt-cache on your system with the command.
$ sudo du -sh /var/cache/apt
Cleaning Apt Cache To remove this cache use
$ sudo apt-get clean
and this will clean the APT cache. 5. Cleaning Thumbnail Cache from System: To check the size of Cache in the system you can use command.
$ du -sh ~/.cache/thumbnails
Cleaning Thumbnail Cache from System To clean this cache you can use the command
$ sudo rm -rf ~/.cache/thumbnails/* 
Comment

Explore