Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

4 Answers 4

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
the "./" is redunant; it just means "the current directory". The last "/" is not needed either. –  James Polley Jan 29 '10 at 1:28

Your Answer


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