![]() ![]() Alternate instructions say to simply hover my cursor over a column header to find "size" that way.Don't ask me to click that unless you can first instruct me HOW TO MAKE IT APPEAR. I'm trying to do this via the web interface. But the instructions I've googled for how to find the size of each folder have been USELESS. I need to know which folders are the biggest so I can figure out how to fix the size issue, for example by asking to be dis-included for folders related to projects I'm no longer involved with. 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.My drop box is apparently too large, and I think it's because I have many shared folders with other organizations (I'm a consultant, so these folders generally belong to the organization I'm contracted with). This way, you can first export only once, which can take hours, and then explore the files, quit, explore again, etc. This is very useful if you are dealing with a very large and slow filesystem like NFS. 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 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.You likely want: ncdu -exclude-kernfs -x / "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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |