![]() The output format is just JSON, so it is easy to reuse it with other programs as well, e.g.: ncdu -o - | python -m json. This way, you can first export only once, which can take hours, and then explore the files, quit, explore again, etc. If the file system on the Linux / UNIX system is accessible through NFS, then it can. Alternatively, If Samba is installed and running on the Linux / UNIX system, then our tools can access a share on this system using its UNC name, e.g. This is very useful if you are dealing with a very large and slow filesystem like NFS. TreeSize can scan Linux / UNIX servers using the SSH protocol (see 'Scan Targets'). ![]() One year later, the newly founded German company JAM. The software tried to overcome the drawbacks of both the du command and Windows Explorer's right-click context menu. It was designed to offer the features of Unix's du on Windows systems, with the addition of a GUI. Otherwise it seemed to go into some link infinite loop, likely due to: Īnother cool feature of ncdu is that you can first dump the sizes in a JSON format, and later reuse them.įor example, to generate the file run: ncdu -o ncdu.jsonĪnd then examine it interactively with: ncdu -f ncdu.json The first version of TreeSize was programmed by Joachim Marder in 1996. To properly list root / on that system, I also needed -exclude-firmlinks, e.g.: brew install ncdu -exclude-kernfs skips special filesystems like /sys.-x stops crossing of filesystem barriers.favorite pieces of software on windows is a little app called treesize free by Jam Software. You likely want: ncdu -exclude-kernfs -x / This Linux command creates a copy of the myfile. "Total disk usage" vs "Apparent size" is analogous to du, and I have explained it at: why is the output of `du` often so different from `du -b` This way don't have to recalculate sizes as you move inside subdirectories as you try to determine what the disk hog is. Ncdu only calculates file sizes recursively once at startup for the entire tree, so it is efficient. Then, I enter down and right on my keyboard to go into the /drivers folder, and I see: This awesome CLI utility allows you to easily find the large files and directories (recursive total size) interactively.įor example, from inside the root of a well known open source project we do: sudo apt install ncdu
0 Comments
Leave a Reply. |