I've got a directory (wordpress
) in a folder (the main html
directory of my website) and I'd like to "unpack" it into the main html directory. That is to say, I'd like to remove the wordpress
directory and have all its subdirectories be under /html/
instead of /html/wordpress/
. How do I do this?
views:
40answers:
3
+4
A:
$ cd /html/wordpress
$ mv * ..
$ cd ..
$ rmdir wordpress
Do you need something more complicated?
Carl Norum
2009-10-10 21:02:57
Brilliant, thank you. I was unaware of the wildcard... duh! I am a Unix newbie.
Isaac Hodes
2009-10-10 21:08:37
+1
A:
mv /path/to/html/wordpress/* /path/to/html
rmdir /path/to/html/wordpress
Should work
ABentSpoon
2009-10-10 21:03:27