Mon. Jul 13th, 2020

How to quickly free Ubuntu/Linux Mint disk space

1 min read

In this article, I will introduce some simple methods and techniques to help you clean up the Ubuntu/Linux Mint systems and get more free space.

  1. Remove the packages that are no longer needed
    sudo apt autoremove
  2. Remove thumbnails
    rm -rf ~ / .cache / thumbnails / *
  3. Clean up the APT cache
    sudo du -sh / var / cache / apt
  4. Remove the old Linux kernel
    First, use the following command to list all the current Ubuntu Linux kernel has been installed:
    sudo dpkg –list linux-image*
    Removing an older kernel is the same as removing any other packages:
    sudo apt remove linux-image-VERSION
  5. Uninstall unnecessary applications
    sudo apt remove package name

You can also use Stacer or bleachbit to rapidly clean your system and free disk space.