Linux Mint

How to Clean Up Disk Space on Linux Mint Distro

It is no secret that junk files from installing new programs and updates can cause an operating system to slow down. These junk files can affect the performance and slow down the speed. Besides that, it can also seriously affect the performance of a system if there are unnecessary system files.

Operating systems such as Linux Mint and Ubuntu-based systems can have many clutter and logs. If your computer is old and space is not analyzed regularly, then it is required to declutter the system.

In case you’re also facing the same issues, here are a few easy ways to clean up disk space on Linux Mint Distro.

How to Clean Up Disk Space on Linux Mint Distro?

We will use two different ways to clean up disk space on Linux Mint Distro. First, we will use terminal and then GUI tools for clearing the disk space.

Clean up Disk Space Using Linux Terminal

You can launch the terminal using CTRL+ALT+T or search for “terminal” from dash (it’s like Ubuntu’s start menu).

In case you want to see the current disk space, use the command below:

df –h

You will get an output like this:

Filesystem      Size  Used Avail Use% Mounted on
udev            5G     0G  1G   0% /dev
tmpfs           1G     0G  1G   1% /run
/dev/sda1        30G   0G  6.3G  60% /

Or use the command below:

ls –l

And you will get an output like this:

drwxr-xr-x 2 xnav xnav  4096 Jan 28  2021  Movies
drwxr-xr-x 2 xnav xnav  4096 Nov 16 2020 Music

Remove the Redundant Applications

Now, execute the following command for listing the installed packages in the system:

sudo apt list --installed

After that, run the command below and replace the package_name with the name of the package you want to remove:

sudo apt remove package_name

In case you want to remove multiple packages at once, type the following command and replace package_name1, package_name2 with the name of the packages you want to remove:

sudo apt remove package_name1 package_name2

This way, you can remove multiple packages straight away.

In case you run out of storage capacity, remove unnecessary applications to free up space. We all have some applications that we rarely use and various system left-over files of deleted applications, so it is better to uninstall and remove them.

Execute the command below to perform the package file remove procedure:

sudo apt-get purge package-name

The package name is the name of the application you want to delete. This removes the programs along with the configuration files created at the time of installation.

The major difference between apt remove and apt purge is that apt remove removes the package’s binaries by leaving reside configuration files. On the other hand, apt purge works to remove every package file, including all configuration files.

In case you use apt remove to delete a specific package and install it again, then that package will work on the same configuration files. The system will ask you to overwrite the configuration files while reinstalling the package.

Using an apt purge can remove everything regarding a specific package and the package will create new configuration files during re-installation.

You can also use the following command to remove all of the package and dependencies which are not required:

sudo apt-get autoclean && sudo apt-get autoremove

In case you want to clear the APT cache only, then execute this command:

sudo apt-get autoclean

You can use sudo apt-get autoremove to remove and clean all of the old packages.

Clean APT Cache

APT is the acronym of Advanced Package Tool present in UBUNTU systems which is used to install, remove and upgrade the software on the system.

In simple words, it is used to manage applications. Installing and uninstalling software keeps the generated cache within itself even after uninstalling apps, resulting in cluttering the space with unnecessary cache files that may increase in size with time.

The du command helps you know the disk usage information which you can use to determine how much cache file is present on the system.
Use the command below to gain cache information:

sudo du -sh /var/cache/apt

The above code will remove the content of the /var/cache/apt/archives directory.

If you don’t have enough storage and cache files are large, you can clean the apt-cache with this dedicated command:

sudo apt-get clean

Remove the Snap Packages

Snap packages are big packages containing some dependencies. It is one of the major downsides of snap packages. By uninstalling such bulky packages, you can reclaim a lot of free space being taken up by these packages. There’s a simple way to delete snaps to free a large amount of storage used by snap packages.

Use the command below to list snap packages:

snap list

Remove the snap by typing the following command:

sudo snap remove package_name

To remove snapd, use the command below:

sudo apt purge snapd

Now you have successfully removed the snap packages you didn’t want to be on the system. Also, you can use the working scripts to perform the same task.

Clean up Disk Space Using GUI Tools

Graphical User Interface saves you from writing dull commands and offers an aesthetically pleasing interface with plenty of options to perform the task you do with the command-line interface. It is easy to use especially for those who are not comfortable with command-line utility.


With plenty of good features to free up space quickly, BleachBit comes in handy when your system runs out of space. You can delete cache, cookies, logs, junks and remove temporary files.

You can use it by following the steps given below:

  • Download the latest version of BleachBit from here.
  • Launch the app, and you will see two options: preview and clean.
  • It will show you files like caches, cookies, apps’ data, junks, etc.
  • Select the files and tap and clean.
  • This way, you can free up space and remove unnecessary files quickly.


Stacer is one of the great tools that comes up with rich features to optimize the system. The dashboard shows your system’s information (like CPU usage, disk space, memory) and the other system cleaner and uninstaller features.

System cleaner removes the junk files that includes app cache, apt-cache, system logs, and other unnecessary files. On the other hand, the uninstaller lets you delete all the applications installed on your system. You can use it by following the steps below:

  • Launch the command line terminal.
  • Use -apt command to initiate an installation:
$ sudo apt install stacer
  • Start the app using the command $ stacer.
  • Head to the dashboard to declutter space and remove redundant files through its appealing graphical user interface.

Ubuntu Cleaner

Ubuntu Cleaner is another GUI tool that helps you free up the disk space and wipe out unnecessary files like caches, unneeded packages, old kernels, etc.

It is an amazing tool. So, if you want to use it then follow the steps given below:

  • Head to the terminal and run the following command to install Ubuntu cleaner.
$ sudo add-apt-repository ppa:gerardpuig/ppa
$ sudo apt update
$ sudo apt-install ubuntu-cleaner
  • Search for the “Ubuntu cleaner” in the app directory.
  • Open app to clean up the system.
  • It offers you a clean dashboard to quickly get rid of unnecessary files.


The operating system should be neat and clean. Junks, system logs, cache application leftovers can make a system slow thus affecting the performance badly and eventually putting a system to potential threats.

Often, we get a lot of mess on the system because we are not aware on how to organize the system by removing unnecessary and duplicate files, making the system slow. You can regain the used space by unnecessary files with command line terminal or the use of GUI apps, which we have already mentioned in this article.

We hope that this article will help you declutter the disk space to enhance the performance of your operating system. Do let us know if you have any further queries or tips.

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.