2

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?

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

Is this a trick question?

mv * ../../
5

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

mv * ../..

To move something up two directories

2

Does this work?

mv * ../../
1

Try this to move two directories up

mv * ./../../

  • 2
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy