Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I am able to move files one directory up by using the following command:

mv * ..

but is there a way to move files two directories up?

share|improve this question

migrated from stackoverflow.com Jan 23 '10 at 18:12

This question came from our site for professional and enthusiast programmers.

    
I presume you mean while logged in to server via ssh? – Eimantas Jan 23 '10 at 17:44

Is this a trick question?

mv * ../../
share|improve this answer

I may be missing something obvious here, but I'm pretty sure you can do:

mv * ../..

To move something up two directories

share|improve this answer

Does this work?

mv * ../../
share|improve this answer

Try this to move two directories up

mv * ./../../

share|improve this answer
2  
the "./" is redunant; it just means "the current directory". The last "/" is not needed either. – James Polley Jan 29 '10 at 1:28

You must log in to answer this question.