Rather, we want to get a top 5 list instead. Running it like that with no options, however, will likely result in a long unsorted output where we hardly get a clear indication of where the problem is. Its purpose is to calculate and report the size of the directory passed as an argument, along with all its subdirectories. Feel free to share your views with us in the comments below.The first and most used command that can calculate and report the usage statistic is du, short for “disk usage”. There many other ways to do so but these 5 are very reliable. So, these are the best ways to free up some disk space on your Ubuntu system or other Linux distro. So, it is always a good idea to keep your system up to date. Some updates also bring fixes that stop apps and packages from occupying too much of disk space. Not many recommend this but it is worth it. It helps me keep my system smooth and fresh. As soon as updates get released, I update my system. Keep System Up to Dateįrom the smartphone OS to the desktop OS I use, I like to keep them up to date. You can uninstall the apps or games you don’t use or need and free up some space on your disk. Here you will see the list of apps and games installed on your system. So, head over to Ubuntu Software Centre and then click on Installed. $ sudo apt-get autoremove -pruge Uninstall Unnecessary ApplicationsĮveryone has some applications on their system they hardly use and these applications only there to eat some space on disk which can be used for better purposes. Or simply you can run the following command to remove old kernels. $ sudo apt-get remove linux-image-version Now you can remove the older version using the following command. To do this run the following command in Terminal. Use the following command to remove the old Kernels from the system.īefore removing the older kernel, you must check the installed Linux kernel versions on your system. Old kernels can leave huge junk of files on the disk and slow down the Ubuntu system. But you have to do this step with caution because it may damage the system. You can remove old kernels from your system which are no longer required. It is a feature-rich tool and you can also clean up disk space using its dedicated feature. It is a modern tool with a modern user interface which makes it attractive and easy to use. Stacer is an open-source system optimizer that helps you keep track of your system’s performance. Remove all packages $ sudo apt-get clean Stacer Remove only outdated packages: $ sudo apt-get autoclean Now you have two options to remove the APT cache, either to remove only outdated packages or remove all of them. To know the exact size of the cache, run the following command in Terminal. Generally, a cache of DEB packages is stored in the location /var/cache/apt/archives. The cache of these apps and packages stays on disk even after they are uninstalled from the system.ĪPT also known as Advance Package Tool is used by Ubuntu to install, uninstall, and manage applications on the system. Remove APT CacheĮvery time we install any application or package using Terminal, APT creates and keeps a cache of the previously downloaded and installed app or package on the disk. I will be covering both GUI as well as command-line methods to free up disk space. Here I’m going to show you the ways in which you can free up the disk space in Ubuntu and be never short on disk space. So, to keep the Ubuntu system steady and fast you need to get rid of unneeded trash at regular intervals. Unlike Windows, Linux and its distros don’t come with tools like defragmenter hence after sometime Ubuntu gets slower due to unnecessary files and applications taking up space on the disk. But with time disk space is something that is never abundant. As we all know Linux and distributions can be installed and used smoothly on as low as 20GB of disk space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |