Quantcast
Channel: Directory Stats command line interface? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Directory Stats command line interface?

$
0
0

Windirstat/ Kdirstat/ Disk Inventory X has been nothing short of revolutionary in file managment. Why is there no text-only command line equivalent? I'd need it for SSH administration of my file servers.

We have all the building blocks: du, tree etc.

Is there one? Why not? Can someone please write one? :)

EDIT: du does ALMOST what I want. What I want is something that sorts each subdirectory by size (rather than full path) and indents so that it's easier to avoid double-counting. du would give me this:

cd adu . -h1G  b2G  c1K  c/d1K  c/e2G  c/f

It's not immediately obvious that c and c/f are overlapping. What I want is this:

cd adir_stats .1G  b2G  c    |+---- 2G  f    |+---- 1K  d    |+---- 1K  e

in which it is clear that the 2G from f is because of the 2G from c. I can find all the info not related to c more easily (i.e. by just scanning the first column).


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>