开发者

Unpacking a directory into its parent directory

开发者 https://www.devze.com 2022-12-08 18:58 出处:网络
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 dir

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 h开发者_如何学运维ave all its subdirectories be under /html/ instead of /html/wordpress/. How do I do this?


$ cd /html/wordpress
$ mv * ..
$ cd ..
$ rmdir wordpress

Do you need something more complicated?


mv /path/to/html/wordpress/* /path/to/html
rmdir /path/to/html/wordpress

Should work


mv /html/wordpress/* /html
rmdir wordpress
0

精彩评论

暂无评论...
验证码 换一张
取 消