Jump to content
MDDHosting Forums

ssh commands?


bunnykins

Recommended Posts

What command would I use to copy a folder with files in it to another location on the server?

 

yes I did a google and am still looking through the results.

 

cp /source/directory /destination/directory

 

You may have to create the destination directory first with mkdir beforehand, I don't remember off hand if cp will create the directory :)

Link to comment
Share on other sites

You can also add a -R so it copies the files and folders over..

-R works for chmod and chown etc... But I wasn't aware -R was a valid argument for cp.

 

If you select it to cp (copy) a directory it will copy the whole directory in my experience.

 

You can always type "man cp" which is the manual page for the cp command or "cp --help" to get more information on the command, or just about any other command in Linux.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...