This article covers different effective ways to free up some disk space on your Ubuntu system or other Linux distro.
Although Linux does not clutter up like Windows, it may be useful to occasionally clean up Linux. Especially in systems with a smaller hard drive it can be beneficial to clean Linux. Occasionally cleaning up Linux does have to be done on a daily basis or weekly basis, 1 time per month is more than sufficient.
Terminal commands to free up some disk space on your Linux System:
There are 3 terminal commands which you can use top clean up Linux Mint.
Each terminal will be explained about what they do and remove.
All three commands contribute to free up disk space.
- sudo apt-get autoclean
This terminal command deletes all .deb files from /var/cache/apt/archives. It basically cleans up the apt-get cache.
- sudo apt-get clean
This terminal command is used to free up the disk space by cleaning up downloaded .deb files from the local repository.
- sudo apt-get autoremove
This terminal command used to remove packages that were automatically installed to satisfy dependencies for some package and no longer needed by those packages.
https://linuxapt.com/blog/126-how-to-free-up-disk-space-in-ubuntu-20-04-lts