Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-22-2006, 01:51 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
folder copy command

cp <source file> <destination file>
will copy your linux file from the source to the destination. my question is what then is the command to copy folders? because i tried to use this to copy a folder from source to destination but was unsuccesfull
Old 10-22-2006, 01:55 AM   #2
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
cp -R <folder name> <destination> will do it.
Old 10-22-2006, 01:57 AM   #3
Jerre Cope
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37

use man cp

to understand how the copy command works.

You'll want to use the --recursive option to copy directories.
Old 10-23-2006, 02:02 AM   #4
LQ Newbie
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks guys i got it!
Old 11-04-2006, 05:59 PM   #5
Registered: Oct 2006
Location: New Jersey (US)
Distribution: Arch Linux
Posts: 58

Rep: Reputation: 15
Also check out the rsync command



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy content of the folder ashley75 Linux - General 6 04-16-2007 11:50 AM
Copy Home Folder seashell11 Ubuntu 3 08-11-2006 01:39 PM
copy a file to all subdirectories in a folder raj000 Linux - General 6 03-24-2006 04:55 AM
how do I copy a whoel folder form one directory to another form the command line? zwyrbla Linux - Newbie 8 08-24-2004 07:40 PM
how do i copy a folder to a newly installed hd dsiguy Linux - General 2 09-24-2003 02:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration