homepage Welcome to WebmasterWorld Guest from 54.204.127.191
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Linux Folder Copy command?
smartcard




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

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




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

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




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

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




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

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

In the meantime:

cp -r /original/dir /copied/dir

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved