Treesize is a very handy software that calculate all files and directories size and more other functions in windows system. But since I am using linux system so I never get the chance to use it. But I saw how my colleague use it and thought how sad treesize does not provide linux version. So I google around and found a package call ncdu, which provides the function that I was looking for!
Let’s take a look of how ncdu look like after running it. From image, ncdu is calculated from
/ directory and sizes of everything uder
To install ncdu and start it.
1 2 3 yum install ncdu -y cd / ncdu
When ncdu is started, it will start to calculate the size of all files and directories
from your current location. For example,
Right after calculation, you will see this image, which ncdu is start from
/, with the final calculated information from your current location.
? to see more options.
Use arrow keys to navigate
right(enter cursor location), and
enter to enter cursor location.
Finally, press q to exit ncdu. That’s it, enjoying!