954,086 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Is this correct ?

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?

army88m2
Newbie Poster
21 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 
cp -R directoryname newdirectoryname
linux
Posting Shark
933 posts since Aug 2006
Reputation Points: 118
Solved Threads: 30
 

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/

sparty
Newbie Poster
10 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: