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

It took me a while to figure out how to go up a directory in dired. If I run dired-tree-up, I get the following error:

dired-tree-up: Cannot go up to /home/jason/src/ - not in this tree

But if I use dired-up-directory, it takes me to the appropriate directory. Does dired-tree-up do something completely different?

share|improve this question
up vote 2 down vote accepted


Run Dired on parent directory of current directory. Find the parent directory either in this buffer or another buffer. Creates a buffer if necessary.


Go up ARG levels in the dired tree.

The main difference between the two is one acts upon a dired-tree, the other upon a directory. A dired tree is made when you visit multiple directories which are connected to each other. The dired-tree up will work if you have previously visited that parent directory and haven't killed off that buffer. The dired-up-directory should always work since it acts upon the directory itself, think of it as doing a 'find-file on $PWD/..'.

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.