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?

link|improve this question
I presume you mean while logged in to server via ssh? – Eimantas Jan 23 '10 at 17:44
why did you put the tag 'ssh' for this ?? Are two trying to move the files between two different machines ? – Manav MN Jan 23 '10 at 17:44
1  
And the programming question is? – Paul Tomblin Jan 23 '10 at 17:45
feedback

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

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

4 Answers

Is this a trick question?

mv * ../../
link|improve this answer
feedback

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

mv * ../..

To move something up two directories

link|improve this answer
feedback

Try this to move two files direcories up

mv * ./../../

link|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
feedback

Does this work?

mv * ../../
link|improve this answer
feedback

Your Answer

 
or
required, but never shown