Have you ever needed to print a directory tree? No, I’m not talking about a simple directory listing, I’m talking about a tree. Like this:
├───2009
│ ├───A
│ │ ├───1
│ │ ├───2
│ │ ├───3
│ ├───b
│ │ ├───1
│ │ └───5
I knew I had done it before but couldn’t remember how. I only needed it for a 2 minute thing so I just printed the dir output and called it good. But, I couldn’t leave it. That is when I found:
The tree command did exactly what I wanted. Hope this helps you if you ever need/want to print a directory tree in Windows.
Image from eduarti amorim via flickr