If you’ve taken a look at the old blog in the last day or so, you’ll know that I’m closing up shop at the end of the month.
The long and boring explanation is over there; the short and snappy one is here: It’s been a decade since I started writing out my Linux experiences there, and two and a half years of chasing down console software here — a lot more than I anticipated on either side.
Suffice to say it’s time for me to move on to new things. I’m also putting an end to the name, so if someone offers you advice in the future and calls themselves “K.Mandla,” it’s not me.😕
For today, I have ddir to show. It’s not terribly beautiful, but I think you will see its usefulness.
I’ve known about ddir for a while, but to be honest, whenever I’ve needed something like ddir, I just grabbed tree (which I see now is listed nowhere on this site.😡 ) They are very similar, as I’m sure you’ll admit.
And given that ddir seems to only offer ASCII characters as output, tree offers a small visual improvement. True, it’s the difference between 1982 and 1983 in console graphics, but it’s there.
ddir’s “help” flag will spit out its man page if you ask, and its few options are there for your perusal. Probably of most interest is the
-d flag, which will prune the output (get it? prune? tree? ) to directories only.
ddir is a basic tool and probably something an introductory-level CS student could replicate on a Saturday night as a party trick, but you can probably see a few uses for it. It’s in Debian as just “ddir,” but I don’t see it anywhere in Arch.
And the obvious post for tomorrow will be … tree.🙄