Complete.Org: Mailing Lists: Archives: discussion: February 2004:
[aclug-L] Re: File too short
Home

[aclug-L] Re: File too short

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: File too short
From: Donald King <donald.king@xxxxxxxxxxx>
Date: Wed, 4 Feb 2004 10:28:52 -0600
Reply-to: discussion@xxxxxxxxx

On Wednesday 04 February 2004 08:57 am, you wrote:
> John Goerzen wrote:
> >cp /lib/libc* /foo/lib
>
> This will not work.   For each link you will get an actual file.
>
> Must be done as
>    cp -p --preserve=links /lib/libc* /foo/lib
> in order to preserve the links.
>
> Or done as  tar and then untar so ALL atributes are retained.
>

You can also use
        cp -a /lib/libc* /foo/lib

cp -a claims to just do -dpR (no dereference symlinks, preserve everything but 
hardlinks, recurse through directories), but it actually preserves hardlinks 
too.  It's very handy.

-- 
Donald King, a.k.a. Chronos Tachyon
http://chronos.dyndns.org/ -- WWED?
Guardian of Eristic Paraphernalia
Gatekeeper of the Region of Thud
 10:23:07 up 108 days,  1:16,  1 user,  load average: 0.03, 0.03, 0.02

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]