How to Clean and Free Up Hard Disk Space On Ubuntu without 3rd party tools

In Ubuntu there are several ways available to clean and free up hard drive space without any 3rd party tools. cleaning the disk space is useful for small size hard drive and ssd users. Please follow the below tips to clean and free up Ubuntu system by removing the unwanted junk files from your hard drive.

1. Uninstall unnecessary applications from Ubuntu

Always remove unused applications from your Ubuntu system to save some space. You can remove a application or software from the Ubuntu software. If you know the exact package name, you can also remove it from terminal.

sudo apt-get remove packagename

You can replace the packagename with the exact name.

2. Remove unwanted or required no longer packages in Ubuntu

Use the below command in terminal to remove any orphaned package from your ubuntu system. Orphaned packages are installed as a dependencies of your main program. If that main program is removed, these orphaned packages are useless in the system.

sudo apt-get autoremove

3. Remove APT cache in Ubuntu

Also Read:  RARS The Ultimate RISC-V Assembler and Runtime Simulator

you can free up APT cache in ubuntu to save some disk space. By default APT keeps a cache of previously downloaded and installed packages even after they’ve been uninstalled. Run the below code in terminal to clean all APT caches.

sudo apt-get clean

or you can just remove the outdated package cache by running the below command in terminal.

sudo apt-get autoclean

To check the cache size use the below command.

sudo du -sh /var/cache/apt

4.Remove thumbnail cache in Ubuntu

Removing the thumbnail cache also increase the disk space in Ubuntu. Ubuntu automatically creates the a thumbnail, if you open or view any file. To check the cache size, run the below command in terminal.

du -sh ~/.cache/thumbnails

To delete the thumbnail cache, run the below command.

rm -rf ~/.cache/thumbnails/*
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.



Leave a Reply