LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-22-2006, 12:51 AM   #1
bobb_roof
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, 12:55 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

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

Rep: Reputation: 37
cp

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, 01:02 AM   #4
bobb_roof
LQ Newbie
 
Registered: Sep 2006
Posts: 17

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

Rep: Reputation: 15
Also check out the rsync command
 
  


Reply

Tags
cp



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 10:50 AM
Copy Home Folder seashell11 Ubuntu 3 08-11-2006 12:39 PM
copy a file to all subdirectories in a folder raj000 Linux - General 6 03-24-2006 03: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 06:40 PM
how do i copy a folder to a newly installed hd dsiguy Linux - General 2 09-24-2003 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:53 PM.

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