Howto copy files?


#1

guys, please help - ive downloaded a zip file to my server with wget and unzipped it into my domain.com/ directory but the zip file contained a sub-dir and unzipped itself into /domain.com/zip/

so im now trying to move files from /domain.com/zip to just /domain.com/ with ssh and cannot get this thing done - if i rename the /zip directory into /domain.com so that the full path to it becomes /domain.com/domain.com/ and then try to mv domain.com /home/username/ it says - cannot overwrite the directory. cp command doesnt help as well. can anyone help pls?


#2

See if this wiki page about unix commands helps.

More clearly… from the /domain.com/zip folder type:-
mv * …/
which will move all the files from zip up one folder to domain.com


Norm

Opinions are my own views, not DreamHosts’.
I am NOT a DreamHost employee OK!! :@

You act on my advice at your own risk!


#3

Try the following from your home directory;

cp /home/user/domain.com/zip/* /home/user/domain.com/

Once you have confirmed that the files have been copied, you can then delete the zip sub-directory (and contents) with;

rm -r /home/user/domain.com/zip

Edit: Gee, Norm’s solution is so much simpler than mine :slight_smile:

Mark


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )


#4

tnx a lot