![]() You could change this, which can help reduce the disk space utilisation. If you use snaps, then you should be aware that the snapd services keeps several revisions of any installed snap on your disk – whenever there’s an update, it will rotate a current version away, and place a new one in its place, a total of three by default. However, it does not purge them, so to gain space back, you also need to use the optional –purge flag. The third command removes orphaned packages and dependencies that are no longer needed by the system. The second command removes obsolete packages. The first command cleans the packages from /var/cache/apt/archives. For instance, in the Debian- and Ubuntu-based systems, which use apt as the package manager, you can remove the cached update files with: sudo apt clean sudo apt autoclean sudo apt autoremove The procedure to do this differs from one Linux distribution to another. However, you can still do a few safe operations, which let you remove unused content like files downloaded and cached during the update process, and leftover packages that are no longer needed. Other tools that do similar things include Filelight or perhaps Disk Usage Analyzer (Baobab) for GNOME.įor most people, the system side of things is best left alone. It can also mount and unmount storage devices and view them in the file manager. Alternatively, KDiskFree (kdf) is a graphical tool that allows you to display information about hard disks and other storage devices, including the amount of free space available.Ncdu is available in most software archives across the different distributions. Results will be displayed by size, which can help you quickly figure out what takes space. Once the disk is analysed, you will have a simple table view, which you can navigate with arrow keys. If you run it without root permissions, you can check your home directory. If you run the program as root, you can check the entire filesystem. Ncdu is a handy ncurses-based tool, which you can run in your terminal, and get a usage view of selected folders and locations.There are numerous ways to achieve this, both on the command line as well as using GUI tools. In some cases, the “picture” may be trivial – you have tons of files in your Downloads, you could be using virtualization, so you may have a folder full of virtual machine images, and so forth. The next step is to figure out what takes your space and what you can do to potentially remove some of the unwanted stuff. A tool like CloneZilla can help you back up and restore your system. Have a system snapshot or image – Most people may find this a bit complicated, but it is quite useful to have a full system copy available for restore, should things go bad.We talked about this in a dedicated tutorial a while back. Back up your application settings – The data backup above may already cover this scenario, but you can use a snap like Mackup to create distinct, precise backups of application settings for a whole range of applications.You can do this manually or automatically via scheduled runs with tools like rsync. Back up your personal files – Make sure you have at least one copy of your important data like documents, photos, etc saved in a separate location, preferably a separate device like an external disk or a different computer.Therefore, before you do any data removal, it is essential that you have a solid, proven, reliable backup mechanism in place. Or you may end up deleting an application configuration file, and will need to redo your work setup all over again. Freeing an extra 20 MB of space could lead to frustration and panic if you suddenly discover you purged an important, valuable piece of information. The primary problem with data cleanup is that people can easily get over-enthusiastic and then end up deleting more than they should. Let us walk you through the processing of slimming down your home. This means that users who want to do a bit of housekeeping in their distro may not necessarily have a quick, convenient way to figure out how to get rid of the extra cruft they have accumulated over the years. Disk cleanup and management utilities are extremely popular in Windows, but not so much in Linux. This also includes your other home – slash home, the Linux home directory. How to keep your Linux disk usage nice and tidy and save spaceĮveryone loves a clean, tidy home (hopefully).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |