I have untar wordpress. It creates a wordpress dir.

I want to move the files under this dir to mydomain.com dir but this doesn't work

mv wordpress/* mydomain.com

What's the syntax then ?

Thanks.

link|improve this question
It should work. What is the error message that you get? – Raphink Dec 26 '09 at 20:56
Did you create the 'mydomain.com' directory beforehand? If you haven't, it will rename all the files to mydomain.com, and consequently, you will actually loose all your files. – Raphink Dec 26 '09 at 21:04
feedback

2 Answers

up vote 3 down vote accepted

The easiest way, if the 'mydomain.com' directory doesn't exist yet, is actually to rename 'wordpress' into 'mydomain.com':

$ mv wordpress mydomain.com

If 'mydomain.com' already exists and you want to add the files from 'wordpress' to it, then:

$ mv wordpress/* mydomain.com/

should do.

link|improve this answer
mydomain already exists. When I try it says cannot move wordpress/wp-content to a subdirectory of itself, 'mydomain.com/wp-content' ?!!! – asksuperuser Dec 27 '09 at 16:43
Hmm my target dir wasn't empty that is why :) – asksuperuser Dec 27 '09 at 16:49
feedback

you need to mkdir mydomian.com first before you run mv wordpress/* mydomain.com

link|improve this answer
1  
But then he can just rename the folder. – Raphink Dec 26 '09 at 21:29
feedback

Your Answer

 
or
required, but never shown