943,837 Members | Top Members by Rank

Ad:
Aug 5th, 2008
0

Is this correct ?

Expand Post »
I was wondering if this code was correct or not. I am trying to copy all the files and subdirectories in one directory to a newly created directory.


cp -R dir/*newdir/*


any suggestions?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
army88m2 is offline Offline
21 posts
since Jul 2008
Aug 9th, 2008
0

Re: Is this correct ?

cp -R directoryname newdirectoryname
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
Aug 14th, 2008
0

Re: Is this correct ?

Click to Expand / Collapse  Quote originally posted by army88m2 ...
I was wondering if this code was correct or not. I am trying to copy all the files and subdirectories in one directory to a newly created directory.


cp -R dir/*newdir/*


any suggestions?
cp -r dir/* newdir/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sparty is offline Offline
10 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: Looking for team builder to establish real home based opportunity
Next Thread in IT Professionals' Lounge Forum Timeline: MDaemon Backup





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC