The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Please help with cpio on HP-UX soestx HP-UX 3 01-13-2006 03:07 PM
<LF> versus <CR>/<LF> jerardfjay Shell Programming and Scripting 1 10-20-2005 03:09 PM
cpio kok UNIX for Dummies Questions & Answers 2 08-12-2004 05:57 AM
CTRL+H versus ^? versus BACKSPACE alan UNIX for Dummies Questions & Answers 3 07-23-2003 10:08 AM
cpio wipro fluid power UNIX for Dummies Questions & Answers 2 06-18-2001 07:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2007
Registered User
 

Join Date: Dec 2006
Posts: 58
cpio versus cp

I am copying a file system to another one. someone suggest me use

find . -print |cpio -pdmv

but I think cp -r should do the same thing. Am I right?


In addition, by using " find . ", I got all the file names,, why do I have to use the -print option?

Thanks a lot!
Reply With Quote
Forum Sponsor
  #2  
Old 09-17-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by fredao View Post
but I think cp -r should do the same thing. Am I right?
It may treat links differently?

Quote:
Originally Posted by fredao View Post
why do I have to use the -print option?
historical/portability reasons.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0