How to use bleachbit on linux

How to use bleachbit on linux

Like CCleaner on Windows, BleachBit frees space by deleting unimportant files and helps maintain your privacy by deleting sensitive data. And, just like CCleaner, there’s more you can do with BleachBit than just clicking a single button.

BleachBit is available in Ubuntu’s Software Center and most other Linux distributions’ software repositories. You can also download it from the BleachBit website – it even runs on Windows, too.

Basic Cleaning

Select the type of data you want to remove in BleachBit’s sidebar after launching it. Unlike CCleaner, BleachBIt doesn’t automatically select or recommend certain types of data to delete. BleachBit works with system-wide data as well as application-specific data – for example, for web browsers such as Firefox.

How to use bleachbit on linux

BleachBit warns you if you select an option that’s slow or may have other problems.

How to use bleachbit on linux

You should run a preview by clicking the Preview button before running an actual Clean operation. Verify that Bleachbit isn’t deleting any important files you want to keep.

How to use bleachbit on linux

File Shredding

Instead of deleting files normally, you can go into BleachBit’s preferences window (Edit –> Preferences) and enable the Overwrite files to hide contents option. This is equivalent to “shredding” files, as some programs refer to it. Programs normally delete files by marking them as deleted, leaving them on the disk for file-recovery utilities to potentially recover. The overwrite option overwrites the files with useless data, preventing recovery. The files may still be recoverable if a copy of them existed elsewhere on the system and that copy wasn’t overwritten, so there’s no guarantee that the data will be completley unrecoverable if you overwrite it – nevertheless, if you’re worried about file-recovery utilities, this is a helpful feature. The downside is that overwriting files is significantly slower than just marking them as deleted, which is why operating systems don’t overwrite all deleted files in the first place.

How to use bleachbit on linux

Wiping Free Disk Space

Like CCleaner, BleachBit includes an option to overwrite free disk space with useless data. This overwrites deleted files that are lurking in the free disk space, ensuring files deleted by other applications are overwriten. To enable this feature, use the Drives tab in the Preferences window to add a writable folder on each partition on your system. If you only have a single drive, the default settings will work fine. If you have a different partition mounted at /partition, you’ll need to add a folder inside /partition to this list.

How to use bleachbit on linux

After configuring the options on the Drives tab, enable the Free disk space option under System. As you’d expect, this option is very slow – so BleachBit warns you.

How to use bleachbit on linux

Quick Shredding & Wiping

You can also shred individuals files and folders and wipe partitions from BleachBit’s File menu. Select Shred Files, Shred Folders, or Wipe Free Space to run an operation immediately.

How to use bleachbit on linux

Deleting System Files

If you try to remove system files like localizations (see below) or APT package data, you’ll see permission-denied errors if you’re running BleachBit as your standard user account.

How to use bleachbit on linux

BleachBit has no built-in way of asking for elevated privileges. To delete these files, you’ll need to run BleachBit as root – you may have a BleachBit as Administrator option in your menu. If you don’t have this option – for example, on Ubuntu – you’ll need to run BleachBit as root manually. To do this on Ubuntu, close BleachBit, press ALT+F2, type gksu bleachbit, and press Enter.

How to use bleachbit on linux

Once it’s launched, you can delete APT cache data, localizations, and other data in system directories. One caveat – BleachBit won’t see your personal data while running as root. You’ll need to close the BleachBit window and run BleachBit normally to delete your browser data and other user-specific data.

How to use bleachbit on linux

Deleting Languages

Your system probably has localization files for a wide variety of languages on it. While this normally isn’t a huge problem and doesn’t take up a large amount of disk space, it does use some. For example, on a fairly standard Ubuntu 12.04 system, BleachBit offers to delete 54MB of language files with its default settings. If you’re feeling squeezed for space, deleting language files can free up a bit. To use this feature, enable the Localizations option under System.

You can select the languages you want to keep on the Languages tab in the Preferences window. Just check the languages you want to keep – BleachBit will remove everything else.

How to use bleachbit on linux

If you’re deleting system data to free up space, you should also check out the APT category near the top of the window to remove unneeded software packages.

Command-Line Interface

BleachBit has a command-line interface, too. From a terminal window, you can run bleachbit -l to list all available cleaners.

How to use bleachbit on linux

Use the bleachbit -c command, followed by a list of cleaners, to run the cleaners. For example, to run all Firefox cleaners and delete your Chromium browser history, you’d run the following command:

bleachbit -c firefox.* chromium.history

How to use bleachbit on linux

Like other terminal commands, you could integrate this command into a script to run BleachBit automatically in the background.

Last updated October 29, 2020 By Sergiu 7 Comments

BleachBit is a cross-platform, free and open source tool for helping you get rid of junk files on your machine. It is powerful and easy to use, allowing you to not only delete junk files, but also to shred and wipe files. This is useful for keeping your keeping system clean and organized, as well as offering you well-deserved privacy.

In this article, I’m going to guide you through the installation process and show you how to make basic usage of BleachBit, while also including screenshots where needed.

Note: I’ll be using Ubuntu, but the steps are similar for most Linux distributions.

Installing BleachBit on Ubuntu

The simplest way to install BleachBit is using the package manager or the software. Here you can search for BleachBit and when you find it, click on it and then press Install. Removing it is as simple as searching for it again and pressing Remove.

If you are a terminal lover, you can use apt command to install BleachBit:

However, the Ubuntu repositories or the Software Center may not contain the latest version – which is 3.2, at the time of updating this article.

So, to grab the latest version, you can head down to official download page:

How to use bleachbit on linux

Here, download the right package for your system (in my case it’s Ubuntu 18.04 LTS) by clicking on the corresponding link. It will download a .deb file.

Installing packages from deb files is simple. Simply double click on it and it will run in the software center. And, you can proceed to install it then.

Using BleachBit to clean your system

Search for BleachBit and click on the bleachbit icon in the Applications Menu:

How to use bleachbit on linux

To run BleachBit with administrator privileges, click on the second icon (BleachBit as Administrator/root).

And, depending on what you click on – the list of files will be different. So, if you don’t want to delete system junk files, you don’t need to launch the second one (BleachBit as Adminstrator).

Either of this methods should open up the start screen:

How to use bleachbit on linux

This is the Preferences menu and you can open it up at any time by clicking on the menu icon (top-right corner of the window) and then click Preferences.

Some important options include:

  • Overwrite contents of files to prevent recovery: although slower, this will actually shred your files. Files are normally marked as deleted and allowed to be overwritten if there isn’t any space left. However, selecting this options will fill the space with junk (that will still act as a deleted file), making the shredded file irrecoverable. Keep in mind that this process is slower.
  • Languages: here you can choose which languages to keep (although they don’t really take up that much space).
  • Drives: in this sub-menu you can add directories where all free space should be replaced with junk (as when shredding files), making sure no file can be recovered from those locations.
  • There’s a dark mode too!

Closing the Preferences menu will leave you in the Main Menu. In either case, you may end up directly on the main page of the app and can choose to check the preferences for advanced options.

How to use bleachbit on linux

On the left side, you can select what type of files you want to delete (this includes system-wide files and application-specific files). Some of them require administrator privileges (such as APT cache and System-related options), and some of them will prompt warnings (such as Firefox warning you that your saved passwords will be deleted).

After making your selection, I suggest clicking on the Preview (the magnifying glass icon). This will show you exactly what is going to be deleted:

By pressing Clean, you are going to start the deleting process. You’ll get a message when BleachBit finishes:

How to use bleachbit on linux

Another thing you can do is quickly shred or wipe a specific directory or file. You’ll find the options as shown in the screenshot below:

How to use bleachbit on linux

With the new updates, BleachBit has also added an option to “Make Chaff“. For most of the users, it’s not a useful feature – but if you need a bunch of files with information to confuse digital forensics when finding traces on your computer, this could come in handy.

You can read more about it in their official documentation.

Using BleachBit in command line

How to use bleachbit on linux

As you can observe in the image above, you can do a lot of stuff through the terminal as well. You just need to type in “bleachbit -help” in the terminal know all the options and its usage.

For instance, to list cleaners run:

This will produce output in the vein of:

Now you can run any cleaner or group of cleaners. For example:

This command will delete all Google Chrome saved data and all saved Thunderbird passwords.

Similarly, you can utilize the –-wipe-free-space command and others to make the most out of it. The CLI is useful because you can write bash scripts that execute BleachBit commands and you can even schedule cleaning actions using tools such as CRON.

Wrapping Up

There are other ways to clean up Ubuntu but having a dedicated GUI tool is always handy. Whether you are simply looking for a neat way to keep your system clean of any unnecessary data, optimizing your machine, or trying to keep your personal details safe, BleachBit is a tool that will surely come in handy, being so easy to get the hang of (while still being powerful).

Do you use any system cleaner? If so, which one and how? Let us know in the comments!

Like what you read? Please share it with others.

Must read

How To Install Kubernetes Cluster On Ubuntu 20.04 Using K3s

How To Install Siege Benchmarking Tool On Ubuntu 20.04

Install Mattermost on Ubuntu 20.04 (With MariaDB)

How To Install Odoo 14 with Let’s Encrypt SSL On Ubuntu 20.04

How to use bleachbit on linux

As we use Ubuntu 20.04, it gets loaded with unnecessary packages and other useless files that only take up space on the hard drive. That’s why there are tools that help us keep Ubuntu 20.04 clean. One of these tools is Bleachbit, a very powerful and simple tool.

What is Bleachbit and why use it?

Every operating system is filled with unnecessary files that affect its performance. These not necessarily malicious files become a burden on modern operating systems. This is why Bleachbit has been created.

Bleachbit is an OpenSource application that is a system cleaner. It is free and above all protects the privacy of our system by not tracking any data. It is available for both Linux and Windows and features a simple and well laid out graphical interface, where everything is well placed.

With Bleachbit we basically can:

  • Free disk space
  • Reduce the size of backups and the time to create them by removing unnecessary files
  • Improve system performance (by vacuuming the Firefox database, for example)
  • Prepare whole disk images for compression (common for “ghost” backups and virtual machines) by wiping free disk space

On the other hand, some of Bleachbit’s features are

  • Delete your private files so completely
  • Simple to use
  • Free of charge
  • Free to share, learn, and modify (open source)
  • No adware, spyware, malware, backdoors, browser toolbars, or “value-added software
  • Frequent software updates with new features

So as you can see it is a good idea to do Bleachbit cleanups on our system.

Keep your Ubuntu 20.04 clean

The first thing we have to do is install Bleachbit on Ubuntu 20.04 using the following command

How to use bleachbit on linux1.- Install Bleachbit on Ubuntu 20.04

When the installation is finished you will see two launchers, you have to execute the one with root permissions.

If you run Bleachbit you will see the following screen which are the options of the application. There’s nothing to touch in the options, but you can always access them from the menu.

How to use bleachbit on linux2.- Running Bleachbit on Ubuntu 20.04

The user interface is quite clean and simple.

How to use bleachbit on linux3.- Bleachbit main screen

On the left side, you can see all the cleaning categories you can do, like APT, Bash, System, and so on.

All of them are important and I proceed to explain them quickly:

  • APT: Here you can remove unused, old packages and the APT cache.
  • Bash: You can choose the history of bash.
  • Deep Scan: Temporary files, thumbs, and so on.
  • Journald: Clean the journal from the system.
  • System: Here you can delete cache, free space, trash, memory, registers, and so on.

Doing this periodically will help the system a lot and increase its performance.

All you have to do is select what you want to clean. When you are ready, you can preview the cleaning. This will run Bleachbit in Dry mode and see what is going to be done.

How to use bleachbit on linux4.- Dry mode on Bleachbit

Now, when you are ready, you can start the process for good and you will have to confirm the process.

How to use bleachbit on linux5.- Confirm the process How to use bleachbit on linux6.- Keep Ubuntu 20.04 clean with Bleachbit

And yes, it’s that easy.


Keeping a clean operating system is an important part of using it because that way we can be agile at work.

On Windows, there are many free or paid tools with dubious advertising, but on Ubuntu, we have Bleachbit which is very simple and easy to use.

So, share this post and join our Telegram channel and our Facebook page. Also, buy us a coffee 😉

How to use bleachbit on linux

Probably, all Windows OS users will know about DiskCleanup utility which is used to remove the unnecessary files in the hard drive to free up disk space and improve performance. If you are looking an alternative for Disk Cleanup tool for Linux systems, then you should check the tool called BleachBit. It is open-source and absolutely free.

BleachBit deletes the unnecessary files, free up cache, delete cookies, clear internet history, shred temporary files, delete logs, and discard junk you didn’t know was there. This tool can be used in both Windows OS and Linux systems. And it will support the following applications such as Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari and more. It not only deletes the files, but it includes some advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster.

Install BleachBit On Ubuntu 14.10

Run the following command to install BleachBit from Terminal:

Install BleachBit Using .deb package

Download the latest version using the following command:

Now install BleachBit and its dependencies using the command:

Now open the BleachBit either from Terminal or from Menu:

Now BleachBit will open. Select the required boxes of the field that you want to clean and Click Clean on the Menu bar:

How to use bleachbit on linux

Now the unnecessary files will be automatically deleted.

Welcome to the Linux Mint forums!

  • Unanswered topics
  • Active topics
  • Search

Bleachbit. How to use it?

Bleachbit. How to use it?

Post by cicero01 » Sun May 25, 2014 2:10 am

I’ve been running Mint 16 for about three weeks and I really like it it seems to do everything I want without issue.

However, on my Windows 7 laptop I run Crap Cleaner to remove stuff which is apparently unnecessary and it does
what it does and gives no problems.

In Mint Software Manager it lists Bleach Bit which I have installed but as I do not understand what all the tick boxes
mean and just want to lose “rubbish” can someone say if ticking all the boxes is safe and will do just that or are there
boxes I should leave unticked?

Please bear in mind I’m no expert so need to have any advice in simple terms for my equally simple mind!!

Any advice gratefully accepted.

Re: Bleachbit. How to use it?

Post by tdockery97 » Sun May 25, 2014 3:10 am

Re: Bleachbit. How to use it?

Post by Fornhamfred » Sun May 25, 2014 3:12 am

Have a look at this link.

However I do agree with Tdockery.

Re: Bleachbit. How to use it?

Post by cicero01 » Sun May 25, 2014 5:44 am

Thanks for the advice.

I am most certainly not an expert so your advice is probably well worth taking. I shall uninstall it accordingly.

Would you run something else to remove say cookies or temporary files or whatever other stuff might be unnecessary or does
it not really affect Mint and therefore not needed?

Re: Bleachbit. How to use it?

Post by Pilosopong Tasyo » Sun May 25, 2014 10:05 pm

I say YMMV. I’ve been using BleachBit for quite a long time cleaning out cruft from my home directory. I don’t run it on a daily basis, maybe once every 4 months or when I feel like running it. The important thing users should pay attention to is read and understand what action each option is going to do. Also, always use the [Preview] button. It’s there for a reason. When in doubt, uncheck all categories except one and do a preview. That way, the user can judge for him/herself if the enabling that category holds any merit.

It goes without saying, apply common sense.

I just ran BleachBit in my home directory, and it cleared out over 500 MB of cruft that I accumulated the past several months. Most of what it removed were thumbnails and cache data. If I included the trash bin, it would have ballooned up to 5+ GB. I also ran BleachBit as root and that removed an additional 500+ MB, most of which are old log files, the apt cache, and several bits of backup files that are no longer needed.

I disable certain options like Free Disk Space, Localization and Memory. I don’t think I gain any benefit enabling these.

I probably can clear out most of the cruft if I hunt them down and manually delete them. But why should I waste time and productivity when BleachBit does it faster?

To Install BleachBit in Linux

BleachBit is an open source application which quickly cleans and free your hard disk space from the system and also shield our privacy. It is used to delete all traces of installing and uninstalling software while browsing the internet. How to install BleachBit is discussed in this article.


  • Shredding files and wiping options.
  • Supports Linux and Windows.
  • Click preview, click delete, check boxes, read description.
  • Supports 61 languages.
  • Constant updates with latest features.
  • Free to modify, share and learn (open source).
  • No browser toolbars, ads, malware or spyware.
  • Overwrite free disk space to hide previously deleted files.
  • CleanerML allows anyone to write a new cleaner using XML.
  • Support for Command line scripting and automation.

Bleachbit Installation in Linux

Use the following link to download bleachbit package,

For Fedora

To Launch BleachBit

Use the following command to Launch Bleachbit.

Then bleachbit will ask us about the preferences. Select the preferences and click close.

How to use bleachbit on linux
The main window of Bleachbit appears as shown below.

How to use bleachbit on linux

Other Features

Default Clean
On the main window, click on the boxes to include it on clean activity . Preview it and click clean.

How to use bleachbit on linux
A warning message pops-up. Press Delete button to proceed.

How to use bleachbit on linux

Shred Files and Folders
Go to File –> Shred Files / Shred Folders to delete files and folders. The shredded files and folders cannot be recovered again.

How to use bleachbit on linux
Select the unwanted files to be deleted and Click delete.

How to use bleachbit on linux
Again click delete option to confirm.

How to use bleachbit on linux

Wipe free space
Go to File –> Wipe Free Space . It is used to overwrite a free space in a specific folder.

How to use bleachbit on linux
Choose the files to be deleted and click OK.

How to use bleachbit on linux
Wiping process starts.

How to use bleachbit on linux

How to use bleachbit on linux

Comments ( 0 )

No comments available

Frequently asked questions ( 5 )

how to install it in debian

follow this link :””

is this avaliable for wndows

alternative for this tool?

Stacer Click&Clean localepurge Sweeper

alternative tool for windows ?

ccleaner glary utilities reg organizer

Why do I see permissions denied errors on Linux?

If you are trying to clean the system (localizations, APT, or Yum), run BleachBit with root permissions by choosing the menu option “BleachBit as Administrator” or using sudo on the command line.

= 5 || postCtrl.tagPost[‘tutorials’].current_page” ng-bind-html=”postCtrl.showtype1[‘tutorials’] | unsafe”>

= 5 || postCtrl.tagPost[‘forums’].current_page” ng-bind-html=”postCtrl.showtype1[‘forums’] | unsafe”>

= 5 || postCtrl.tagPost[‘news’].current_page” ng-bind-html=”postCtrl.showtype1[‘news’] | unsafe”>

Hey there. I’m in trouble.

I wanted to install a Solus MATE distro, because it is supposed to work well on older PCs. So I put it on a USB drive, and lauched a clean install. Erased everything that was there after a backup.

But when it was time to restart, the PC did’nt even see the hard drive. The only boot options are now the live USB drive, and the firmware boot.

So I tried restarting without the USB drive inserted, and the computer did’nt even know what to do.

Not being a technical guy, I’m at a loss here. And it’s been a week! :/

I even posted questions on other Linux forums, but not luck so far.

I tried reformating the hard drive, but Gparted gives me a list of formats that is a mile long. I have no idea what those are.

But then again, maybe it’s not even a format problem?!

by Magesh Maruthamuthu · Last Updated: February 9, 2020

When you are running out of disk space on system, instantly you might use DU (Disk Usage) command to check the system disk usage but it wont give you info about cached data, internet history, and junk files usage.

To accomplish this, I would suggest you to install BleachBit System cleaner utility. Its best Alternatives for CCleaner in Linux and clean everything in your system in depth way.

What’s BleachBit

BleachBit is a free, open-source and easy to use disk space cleaner & privacy manager. It’s not only clearing a disk space apart from that it will analyze and delete junk files, temporary files, Browsers history, cache, cookies, shred temporary files, and logs you didn’t know where it is.

Designed to work with Linux and Windows systems, also clean a thousand of applications such as Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari, and more.

BleachBit system cleaner will remove the following junk files in Linux

  • Bash : Delete the command history
  • Deep Scan : Clean files widely scattered across the disk like, Backup files, .DS_Store, Thumbs.db, and Temporary files
  • Email client : Delete the email client cache
  • Web browser : Delete the backup files, cache, cookies (which contain information such as web site preferences, authentication, and tracking identification), crash reports, DOM storage (HTML5 cookies), Download history, Form history, Passwords, Session restore, Site preferences, URL history, and Vacuum (Clean database fragmentation).
  • Desktop environment : Delete the usage history & search history
  • System : Delete the cache, Clipboard, Custom, Broken desktop files, Free disk space, Localizations, Memory, Recent documents list, Rotated logs, Temporary files, and Trash
  • Thumbnails : Icons for files on the system & cache
  • VIM Editor: Delete

/.viminfo which includes file history, command history, and buffers

  • Package manager : Delete the cache and Clean database fragmentation to reduce space and improve speed without removing any data
  • Install BleachBit on Linux via distribution official repository

    We can easily install BleachBit on major Linux distribution such as RHEL, CentOS, Fedora, Ubuntu, Debian, LinuxMint, SUSE Enterpirce Linux, Mageia, Arch Linux & openSUSE from distribution official repository.

    For Debian based systems, use apt-get or apt package manager to install BleachBit.

    For RHEL/CentOS based systems, enable EPEL Repository and use yum package manager to install BleachBit.

    For Fedora system, use dnf package manager to install BleachBit.

    For openSUSE system, use zypper package manager to install BleachBit.

    For Arch Linux based systems, use pacman package manager to install BleachBit.

    Install BleachBit on Linux through deb & rpm file

    Alternatively we can install latest version of BleachBit by downloading rpm & deb file from BleachBit website.

    Refer RPM Package Manager & DPKG package manager for .dep & .rpm file installation.

    How to use BleachBit ?

    Launch the BleachBit system cleaner from main menu, you will get the default interface looks like below. It will popup with preference window and you can customize what you want.
    How to use bleachbit on linux

    See the BleachBit system cleaner interface.
    How to use bleachbit on linux

    Choose all the options to clean everything. When you choose Deep Scan, Firefox, & system will popup below warning messages.

    • Deep Scan will make this process bit slow due to clearing following files such as Backup files, .DS_Store, Thumbs.db, and Temporary files
    • Firefox option will warn you about deleting your saved passwords.
    • System also will make this process bit slow due to deep analysis of following options such as Free disk space, Localizations, and Memory.

    How to use bleachbit on linux

    Hit Preview button to know how much MB each options holding junk files.
    How to use bleachbit on linux

    Hit Clean button to start clearing the unwanted junk files and caches. It will ask your confirmation, before initiate a process (select Delete button). When you run the bleachbit as a normal user, you will get lot of error messages while cleaning system parameter.
    How to use bleachbit on linux

    Cleaning junk files under progress.
    How to use bleachbit on linux

    cleaning has been done and finally showing statistic about, how much disk space to be recovered and how many files get deleted in this activity.
    How to use bleachbit on linux

    For deep cleaning, including system junk files run bleachbit with sudo privilege.

    Follow the above steps after launching the bleachbit to clean junk files.
    How to use bleachbit on linux

    Most anything you can do with the graphical user interface, you can do with BleachBit’s command line interface which serves two needs:

    • Automating cleaning in scripts, batch files, and scheduled tasks
    • Running BleachBit headless in terminal-only connections.

    This page includes some examples.


    This video introduces the command line interface for Microsoft Windows.

    Microsoft Windows

    In Windows, use the executable bleachbit_console.exe to console output. The directory isn’t added automatically to the path, so you use the full path C:Program Files (x86)BleachBitbleachbit_console.exe . Where acceptable, it is best to substitute the environment variable %ProgramFiles(x86)% for C:Program Files (x86) .


    Running bleachbit (which is in the path) with arguments runs BleachBit in command line mode. Without arguments, BleachBit runs in graphical mode. The clipboard can only be cleaned under an X session (which is generally not available over SSH or in cron).

    Listing options

    To see a list of cleaners and their options, run:


    To preview deleting Firefox cache, run:

    bleachbit –preview firefox.cache

    Multiple arguments are allowed. To preview deleting Firefox cache and Opera cache, run:

    bleachbit –preview firefox.cache opera.cache

    Wildcards are allowed for options (though not cleaners), so to preview deleting all options for Opera, run:

    bleachbit –preview opera.*

    To select the same options as in the GUI, use –preset , which may be combined with other options:

    bleachbit –preview –preset firefox.cookies

    Deleting files

    When you are ready to delete files and make other permanent changes, replace –preview with –clean . To vacuum Firefox, for example, run:

    bleachbit –clean firefox.vacuum

    Overwriting files

    To overwrite the contents of files, so they cannot be undeleted later, add –overwrite :

    bleachbit –overwrite –clean firefox.vacuum

    Without –overwrite , BleachBit checks the configuration set in the graphical user interface.

    Shredding files

    To shred any file, so its contents cannot be recovered, use –shred . While –overwrite refers to the files identified by –clean , the option –shred shreds any file anywhere. For example, this shreds one file named yoga_emails.txt :

    To shred all files under a directory, pass the name of the directory like this:

    bleachbit –shred “C:Microsoft ExchangeTop Secret Emails”

    Wiping free space

    When files are deleted without shredding, the contents might be recoverable from the disk’s free space. To prevent recovery from free space, you can wipe the free space. Unlike wiping specific files, wiping free space takes a long time.

    You might want to wipe free space for each logical drive. For example, on Windows you might wipe C: and D: , if you have both and write sensitive files to them both. On Linux, you might want to wipe / and /home if they are separate partitions and if you write sensitive information to both.

    To wipe any partition, pass any writable directory in that partition to –wipe-free-space . For example:

    Wiping free space does not change how much free space is left, when the process is done. For example, if you start with 10GB free, then you will still have 10GB free when the process is done.

    cron example (Linux)

    To vacuum Firefox each night at 03:00, run:

    A common category of software you will find on many Windows PCs are system optimizers and cleaners. One such application is CCleaner, a powerful and popular Windows PC cleaner which scans for and deletes unwanted files, private information such as browsing cache and history, freeing up space and guarding your privacy and more.

    Unfortunately, there is no CCleaner release for Linux systems, so if you were using it on Windows and made a switch to Ubuntu Linux (one of the recommended distros for Linux beginners), you are probably wondering which software to use for the same purpose on your new platform.

    Whether you have just made the switch or you have been using Ubuntu before, if you are looking for an alternative to CCleaner, you have landed in the right place. In this article, we will share 6 best CCleaner alternatives for Ubuntu Linux.

    1. BleachBit

    BleachBit is a free open source, powerful, feature-rich, and cross-platform software to easily and quickly clean your system, free up disk space and protect your privacy. It runs on Linux systems and Windows.

    It’s easy to use, and it supports up to 65 languages around the world. It helps clean your system thus freeing up disk space, reducing the time it takes to create backups, and improving overall system performance. It also assists you to maintain privacy by shredding files (any type of file) to securely hide their contents and prevent data recovery, and overwrites free disk space to securely hide previously deleted files.

    BleachBit for Ubuntu

    Importantly, it comes with a command-line interface for those who enjoy working from a terminal, it’s therefore scriptable and also allows you to create your own cleaners via CleanerML, and many other features.

    To install BleachBit on your Ubuntu and its derivatives, use the APT package manager as shown.

    The version of BleachBit in the repositories of many Linux distributions is often stale, so to use the latest version, use the .deb or .rpm package for the most similar Linux distribution at the BleachBit Download page.

    2. Stacer

    Stacer is a free, open source system optimizer and monitoring tool for Linux systems, with an elegant and intuitive GUI. It comes with useful features you would expect from a system optimizer, and a real-time system resource monitor, such as a system cleaner.

    Stacer System Cleaner

    Its beautifully designed dashboard gives you access to a wealth of system information; allows you to clear app caches, analyze system start-up, start/stop system services, and more so uninstall applications. In addition, it seamlessly adapts to your pre-configured system look and feel.

    To install Stacer on your Ubuntu and its derivatives, use the following official PPA to install it as shown.

    For other Linux distributions, head over to installation instructions at

    3. FSlint

    FSlint is a free open source, simple and easy-to-use application for finding and cleaning various kinds of lint on a Linux filesystem. It has both a GTK+ GUI and a command line interface allowing you to automate certain operations via scripts.

    Delete Duplicate Files in Linux

    It helps to remove/delete duplicate files in Linux, find and delete empty directories, unused temporary files, unwanted and problematic cruft in files and file names, bad symlinks, thus keeping your system clean. After performing all the above operations, you will regain disk space that was being hogged by unnecessary and unwanted files residing on your filesystem.

    To install FSlint on your Linux systems, use the appropriate package manager to install it as shown.

    4. Sweeper

    Sweeper is a simple and the default system cleaner for KDE. It is used to clean unwanted traces of user activity on a system to protect your privacy, and reclaim disk space by removing unused temporary files. It can delete web-related traces such as cookies, history, cache; image thumbnails cache, and also cleans the applications and documents history.

    Sweeper System Cleaner

    To install Sweeper system cleaner on your Linux systems, use the appropriate package manager to install it as shown.

    5. Ubuntu Cleaner

    Ubuntu Cleaner is also a free open source, simple, easy-to-use Ubuntu system cleaner. It frees up disk space and gets rid of all private information from your system such as browser cache. It also removes: APT cache, thumbnail cache, unused packages, old kernels as well as old installers. This way, it keeps your system clean and helps you regain some disk space.

    Ubuntu System Cleaner

    To install Ubuntu Cleaner on your Ubuntu and its derivatives, use the following PPA to install it as shown.

    6. GCleaner

    GCleaner is a free open source, intuitive, simple and fast system cleaner for Ubuntu Linux and its derivatives. Its a port of CCleaner developed using Vala, GTK+, Granite and Glib/GIO. Like all the above system cleaners, it protects your privacy and makes your computer faster and more secure to use.

    GCleaner for Ubuntu

    To install GCleaner on your Ubuntu and its derivatives, use the following PPA to install it as shown.

    Note that you can also check out Ubuntu Tweak Tool, however, the project is no longer actively maintained–install and use it at your own risk.

    That’s all! In this article, we have shared 6 best CCleaner alternatives for Ubuntu Linux. If we have missed any software you know should be in this list, let us know via the comment form below.

    If You Appreciate What We Do Here On TecMint, You Should Consider:

    TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

    If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

    We are thankful for your never ending support.