bunnykins Posted January 19, 2009 Report Share Posted January 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
Michael D. Posted January 20, 2009 Report Share Posted January 20, 2009 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 Quote Link to comment Share on other sites More sharing options...
bunnykins Posted January 20, 2009 Author Report Share Posted January 20, 2009 Ok thanks. Quote Link to comment Share on other sites More sharing options...
Larry Posted January 20, 2009 Report Share Posted January 20, 2009 Ok thanks. You can also add a -R so it copies the files and folders over.. Quote Link to comment Share on other sites More sharing options...
bunnykins Posted January 20, 2009 Author Report Share Posted January 20, 2009 Good thats what I will need. Thanks again. Quote Link to comment Share on other sites More sharing options...
Michael D. Posted January 21, 2009 Report Share Posted January 21, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.