Software & AppsOperating SystemLinux

How To Reset Thumbnail Cache and Exclude Folders in Ubuntu?

Ubuntu 2

In this guide, we will walk you through the process of resetting the thumbnail cache and excluding specific folders from thumbnail generation in Ubuntu. This can be particularly useful if you want to save disk space or speed up your file manager.

Quick Answer

To reset the thumbnail cache in Ubuntu, you can delete the contents of the ~/.cache/thumbnails directory using the command rm -r ~/.cache/thumbnails/* in the terminal. Unfortunately, there is no built-in way to exclude specific folders from thumbnail generation in Ubuntu, but you can use a third-party tool like BleachBit to clean up the thumbnail cache and exclude specific folders.

Understanding Thumbnail Cache in Ubuntu

When you open a folder containing images or videos in Ubuntu, the Nautilus file manager generates thumbnails for these files. These thumbnails are stored in a cache to speed up the loading of the same folder in the future. Over time, this cache can grow significantly in size and may need to be cleared to reclaim disk space.

How to Reset Thumbnail Cache in Ubuntu

Resetting the thumbnail cache in Ubuntu is a straightforward process. You simply need to delete the contents of the ~/.cache/thumbnails directory. Here’s how you can do it:

Step 1: Open Terminal

Press Ctrl+Alt+T to open the terminal. The terminal is where you can input commands to interact with your system.

Step 2: Delete Thumbnail Cache

In the terminal, type the following command and press Enter:

rm -r ~/.cache/thumbnails/*

Here, rm is the command to remove files or directories, -r is a parameter that tells rm to remove directories and their contents recursively, and ~/.cache/thumbnails/* specifies the path to the directory containing the thumbnail cache.

After running this command, all the files in the thumbnails directory will be deleted, effectively clearing the thumbnail cache.

How to Exclude Folders from Thumbnail Generation

Unfortunately, Nautilus does not provide a built-in way to exclude specific folders from thumbnail generation. However, you can use a third-party tool called BleachBit to clean up the thumbnail cache and exclude specific folders.

Step 1: Install BleachBit

First, you need to install BleachBit. To do this, open a terminal and run the following command:

sudo apt install bleachbit

Here, sudo is a command that allows you to run programs with the security privileges of another user (by default, the superuser). apt is the package handling utility in Ubuntu, and install is the command to install a new package.

Step 2: Configure BleachBit

Once BleachBit is installed, you can launch it from the Applications menu. In the BleachBit window, select the “System” category on the left sidebar, then scroll down and check the box next to “Thumbnails” to enable it.

Step 3: Exclude Specific Folders

Click on the “Preview” button to see a list of files that will be cleaned. If you see the folder you want to exclude in the list, uncheck it. Finally, click on the “Clean” button to delete the selected files.

Please note that BleachBit is a powerful tool, so use it with caution. Always review the files that will be cleaned before proceeding.

Conclusion

While Ubuntu does not provide a built-in way to exclude specific folders from thumbnail generation, you can use tools like BleachBit to manage your thumbnail cache and exclude specific folders. Always remember to have a backup of your important files before performing any system modifications.

What is the purpose of the thumbnail cache in Ubuntu?

The thumbnail cache in Ubuntu is used to store generated thumbnails for images and videos in order to speed up the loading of folders containing these files.

How can I reset the thumbnail cache in Ubuntu?

To reset the thumbnail cache in Ubuntu, you can delete the contents of the ~/.cache/thumbnails directory using the command rm -r ~/.cache/thumbnails/* in the terminal.

Can I exclude specific folders from thumbnail generation in Ubuntu?

While Ubuntu does not provide a built-in way to exclude specific folders from thumbnail generation, you can use a third-party tool called BleachBit to clean up the thumbnail cache and exclude specific folders.

How do I install BleachBit in Ubuntu?

You can install BleachBit in Ubuntu by running the command sudo apt install bleachbit in the terminal. This command will install BleachBit using the package handling utility in Ubuntu.

How do I configure BleachBit to exclude specific folders?

After launching BleachBit, select the "System" category on the left sidebar, scroll down, and check the box next to "Thumbnails" to enable it. Then, click on the "Preview" button to see a list of files that will be cleaned and uncheck the folders you want to exclude. Finally, click on the "Clean" button to delete the selected files.

Leave a Comment

Your email address will not be published. Required fields are marked *