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?

1
  • I presume you mean while logged in to server via ssh?
    – Eimantas
    Jan 23, 2010 at 17:44

4 Answers 4

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 * ./../../

1
  • 2
    the "./" is redunant; it just means "the current directory". The last "/" is not needed either. Jan 29, 2010 at 1:28

You must log in to answer this question.