Date: Fri, 22 Sep 2000 18:57:39 +0000 From: Chris <kingsqueak@kingsqueak.org> To: =?iso-8859-1?q?=22Sriranga?= =?iso-8859-1?q?_Veeraraghavan=22?= <ranga@CSUA.Berkeley.EDU> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to copy directory and =?iso-8859-1?q?contents=3F?= Message-ID: <200009222257.e8MMvdW25084@pinnacle.kingsqueak.org> In-Reply-To: <200009222159.OAA29115@soda.csua.Berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
cp -Rp ------------------- > > > How do you copy a directory? I have used cp to copy files, but I am > > not sure about copying a directory and all the files within. > > I find that cpio is the prefered way to do this (several others have > mentioned tar): > > $ cd <src> && find . -depth -print | cpio -pvd <dest> > > ----ranga > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009222257.e8MMvdW25084>