Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is Linux for the MS-DOS tree command?


List a tree listing of the current drive. Below is a basic example of what a directory may look like.

├───Shockwave 8
│ ├───DswMedia
│ ├───Prefs
│ └───Xtras
share|improve this question
"find" isn't that far off... – wrt Jan 16 '10 at 4:32
up vote 10 down vote accepted

There is also a Linux command tree. But it doesn't always come pre installed.

If you are using Ubuntu (or a Debian based distro) you can install the tree command by typing

sudo apt-get install tree

Or for other distros or if you want the source code, you can check out the Tree homepage

[If you're interested, it's written by a guy called Steve Baker and his site is here]

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.