Welcome to WebmasterWorld Guest from 50.19.34.234

Forum Moderators: bakedjake

Message Too Old, No Replies

Linux Folder Copy command?

     

smartcard

2:41 pm on Apr 15, 2006 (gmt 0)

10+ Year Member



I have a folder in my Linux hosting account (I have ssh connection to the server) same as

\newversion\files

I need to copy this to

\public_html\files

But I already have the old version files under the \public_html\files folder.

Can you please tell me the command in Linux to do this task?

coho75

3:01 pm on Apr 15, 2006 (gmt 0)

10+ Year Member



You can use 'mv \newversion\files \public_html\files'

This will copy all the files from the source directory to the destination directory. If you wanted to copy just one file from one directory to another, you could use 'cp'

Matt Probert

3:38 pm on Apr 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mv MOVEs the source files to the specified destination.

cp COPYs the source files to the specified destination.

For more information, try:

man cp

and

man mv

Matt

StupidScript

11:24 pm on Apr 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Matt's idea is best (learn all you can!) ...

In the meantime:

cp -r /original/dir /copied/dir
 

Featured Threads

Hot Threads This Week

Hot Threads This Month