[SunHELP] Hardlinks in Solaris 8

Phil Stracchino phil.stracchino at speakeasy.net
Mon Apr 16 07:27:37 CDT 2007


Predrag Zecevic [Unix System Administrator] wrote:
> Hi,
> 
>     * cp -pr dir1/* dir2/*
>     * rsync --archive dir1/ dir2
>     * man cpio (adopt Example 3: find . -depth -print | cpio -pdlmv newdir)
> 
> Regards ;-)

cp -pr is not *quite* equivalent to cp -a.  The -a option in GNU cp is
equivalent to -pdr, where -d is shorthand for --no-dereference (i.e,
copy symbolic links as symbolic links instead of dereferencing them and
copying the target).

Sun cp does not support the --no-dereference functionality.



-- 
 It's not the years, it's the mileage.
 Phil Stracchino              phil.stracchino at speakeasy.net
 Renaissance Man, Unix generalist, Perl hacker, Free Stater
 Landline: 603-429-0220                Mobile: 603-320-5438



More information about the SunHELP mailing list