How to detect and clean hard drive memory with QDirStat in Linux
QDirStat was developed from an old, tested KDirStat tool, by the same author, Stefan Hundhammer. Both programs serve the same purpose: Presenting statistics about how computer memory is used in a human-friendly way.
The program does not display the information obtained as an integer and a percentage, but according to the hierarchical tree structure and graphical map. This makes it easy to find and delete unnecessary files to reclaim the space they occupy.
The app not only displays statistics about the files, it also allows you to take actions on them. You can delete them through the application, clean up what's left of the GIT sync process or run and delete junk files, etc.
Using QDirStat in Linux
- Install QDirStat
- Select the path for analysis
- Tree view and visual map
- Put the file in the trash and delete the file
- Action compression and cleanup
- Customize the cleanup
Install QDirStat
You might be able to find QDirStat in the software center of the distribution. Search by name from the main graphical software management tool of the distribution and install through it.
If you prefer the terminal, on Debian and Ubuntu compatible distributions, you can install QDirStat with:
sudo apt install qdirstat
QDirStat does not require KDE libraries (or Gnome or some other desktop environments), in addition to QT and Perl, so this will be a relatively quick and easy installation.
Select the path for analysis
When run, QDirStat takes immediate action by asking which source path to investigate. You can choose any path accessible via the local or remote file manager. If it is mounted and accessible, QDirStat can use it.
After selecting a path, click Open to select it and move to the main QDirStat window.
Tree view and visual map
After analyzing the selected path content for a short time, QDirStat will present its findings in two different ways in the main window.
The first is a tree view, unlike in other file managers. The difference is that DirStat sorts it by default based on the size of each item, with the items having the largest capacity on top.
At a glance, you can check how much memory a directory occupies, its actual size in bytes (KB / MB / TB), etc.
You can expand any folder to see content, by clicking on the small arrow on the left.
At the bottom of the window, you can see a second graphical view of everything in the path.
Each rectangle represents a different file and the larger the rectangle, the more the file takes up storage space.
Put the file in the trash and delete the file
After locating the file or folder you want to remove, right-click Move to Trash or select the file and then press Delete
on your keyboard.
The file / folder will remain in the operating system's trash folder until it is deleted or other files require the space it takes up.
For permanent deletion, select the 'Delete (no way to undelete!)' Option or press Ctrl
+ Delete
on your keyboard with a file or folder selected.
As stated, it is useless to double check what you delete with this option because there is no undo feature.
Action compression and cleanup
When choosing folders instead of files, QDirStat offers more options to recover lost storage.
Right-click on a folder and QDirStat will allow you to compress its contents to reduce the amount of space they take up.
You can also delete any rest of GIT creation and synchronization by selecting those options ( 'make clean' and 'git clean' ) from the right-clicking menu.
Avoid 'Clear Directory Contents' , as it will erase everything in a directory (unless that's what you asked for).
Finally, 'Delete Junk Files' removes the files that it locates in the selected path and realizes it as garbage. You can specify what is needed in the Settings section of QDirStat.
Customize the cleanup
Select Settings> Configure QDirStat to correctly configure QDirStat. The program groups its custom options in 4 tabs.
- Cleanup Actions allows you to check the current program functions that can run on selected files and folders. Here, you will also find options for 'Open File Manager Here' and 'Open Terminal Here' . You can rearrange the actions and add new ones if you want.
- MIME Categories is where you can identify different file groups based on patterns defined in their file names. For example, you can include temporary files in the 'Junk' MIME Category by adding '* .tmp' in the 'Patterns (Case Insensitive)' field.
- Exclude Rules creates a list of files and folders that the program cannot access. Perhaps it is best to add any important folders and files that you do not want to be affected by the operation of the program.
- General has a number of basic options regarding the operation and aesthetics of the application - ignore it.
QDirStat is useful for finding large but useless files, taking up all of your storage space, but as you can see, it is even more useful if you customize the existing cleanup actions or settings. its own option.
This way, you will know what these actions do and how they affect files, creating cleanup scripts that let the excess data sink into oblivion with just two clicks.
You should read it
- How to clean PS4
- Instructions for cleaning the television properly
- New Memory Optimization feature on iOS 11
- What is high memory and Low memory in Linux?
- How to manage memory to restrict Linux to use too much RAM
- How to delete memory dump files in Windows
- The Baisvik Disk Cleaner hard disk cleaning software is available for $ 39.95, free of charge
- 14 simple tips to help clean the house and welcome Tet
May be interested
- How to free up hard drive space with CompactGUIif you're running out of hard drive space and aren't willing to spend more to upgrade, data compression will be helpful in freeing up hard drive space and the best tool for this is compactgui.
- Methods to expand storage memory for computers quicklywhen a 'low disk space' warning appears on your computer, this means that your disk space is extremely low. you need to delete some things to free up space, but in fact you can't give up anything on your computer because it's all important data.
- What is a hard drive? There are several types?today most types of computers are large and small need to use hard drives, this is an extremely important part for computers, it has the ability to store all personal data and they are always accessed regularly. .
- Dissection of hard drive componentsa hard drive (commonly referred to as hard disk, hard drive, or hdd) is a non-volatile storage device that stores digital data encoded on hard disk (platter) disks quick rotation on the magnetic surface.
- How to install SSD hard drive NVMe M.2?whether you are looking to upgrade your computer's performance or extend the life of an old system, the most important component to replace first is the hard drive. surely you were surprised when the author did not mention the processor, memory or video card? many people believe that these components should be replaced, but that is not the right action.
- Advice on buying an external hard drivein fact, today's portable hard drives are quite popular with mobility as well as increasing memory capacity. however, the purchase of this product also needs to be carefully considered and depends largely on the need to use the data as well as the equipment that the user is in order to avoid the absence of it, but if so it's too much
- Intel SSD 660P soft-drive price in Vietnam: NAND QLC memory chip, 512 GB version less than 3 millionintel ssd 660p is the newly introduced intel soft-drive ssd series recently returned to vietnam market. 660p uses nvme m.2 interface, flash nand memory chip qlc provides high-speed storage solution for individual users.
- How to Copy Files to an External Hard Drivethis wikihow teaches you how to copy files that are on your computer onto a portable hard drive, flash drive, or memory card. determine the connection type for the hard drive and your computer. virtually all external hard drives use a usb...
- Quickly detect bad sectors for hard drivesbad sector hard drives are always a nightmare for users and at the same time cause the performance of computers to decline. not only that, if the hard drive has bad sectors too much, it will lead to 'pitiful death' for your valuable data.
- How to Boot Your Computer from an External Hard Drivetoday's tipsmake will show you how to set up your computer to boot from an external drive instead of the built-in hard drive. this is useful when you need to run another operating system (such as linux) or install something that requires the internal hard drive to be offline.