[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cp command



On Tue, 15 Jul 1997, Bob Clark wrote:

> Syd Alsobrook wrote:
> > Really easy
> > The best way to copy a directory tree from one drive to another is
> >         cp -pr /usr /hd
> Hmm... The _best_ way?  I not so sure.  Like most things in
> *nix where there are lots of ways to get the job done there
> is usually not a _best_ way.  A major problem with cp -pr is
> that linked-files, both hard and soft, are broken and all
> links are copied individually as regular files.  This can
> cause MAJOR problems as well as consuming more disk space.

Try:	cp -a /usr /hd

where -a stands for --archive.  It *does* preserve links!  ^_^
(According to cp --help, it says -a is equivalent to -dpR)

Anthony

-- 
Anthony Fok Tung-Ling            foka@gpu.srv.ualberta.ca
Civil Engineering                http://www.ualberta.ca/~foka/
University of Alberta, Canada    Keep smiling!  *^_^*


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: