Using the operating system, more than once you have to deal with the installation and removal of any programs. Removing unnecessary programs leaves absolutely useless dependency files. In order not to clutter up the system, you need to get rid of partial packages and remove all unused dependencies. Here are some useful commands.
Removing partial packages:
sudo apt-get autoclean
Clearing the cache:
sudo apt-get clean
Removing unused dependencies:
sudo apt-get autoremove
It is good practice to use the following command to avoid any leftover files after using the autoremove command.
sudo apt-get autoremove application-name
Removal of duplicates and broken links.
Over time, you might have a dozen copies of the same file lying around in different corners of your system. The best place to hunt them down and destroy them before they take control of the hard drive.
FSlint is a utility for finding and cleaning various duplicate files, empty directories and broken links. To install this program, use the following command in the terminal:
sudo apt-get install fslint
After installation, click Win and in the search field enter the name of the program – FSlint .
Clearing the thumbnail cache.
For each picture shown, Ubuntu automatically creates a thumbnail for viewing in the file manager. Thumbnails are stored in a hidden directory of the user account. Hidden directories and hidden files start with a dot. For example .cahe or .bash_history . The dot makes them hidden.
Over time, the number of thumbnails may grow, and a cache of thumbnails that no longer exist in the system will be stored. From time to time it is required to clear the system of this kind of unnecessary cache.
The fastest way is to use the following commands using a terminal:
rm -v -f ~ / .cache / thumbnails /*/*.png ~ / .thumbnails / * / * .png
Then
rm -v -f ~ / .cache / thumbnails / * / * / * .png ~ / .thumbnails / * / * / * .png
Perhaps these manipulations will affect the sketches on the desktop. In this case, to restore them, you need to update the desktop, or log out and log back in.
For more such interesting article like this, app/softwares, games, Gadget Reviews, comparisons, troubleshooting guides, listicles, and tips & tricks related to Windows, Android, iOS, and macOS, follow us on Google News, Facebook, Instagram, Twitter, YouTube, and Pinterest.