Date: Fri, 22 Sep 2000 17:40:03 +0200 From: Francesco Casadei <fcasadei@inwind.it> To: Murray <mgd@brutus.converging.net> Cc: freebsd-questions@freebsd.org Subject: Re: how to copy directory and contents? Message-ID: <20000922174003.A1550@goku.kasby> In-Reply-To: <20000921155948.A43806@converging.net>; from mgd@brutus.converging.net on Thu, Sep 21, 2000 at 03:59:48PM -0600 References: <20000921155948.A43806@converging.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 21, 2000 at 03:59:48PM -0600, Murray wrote:
> 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.
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
> end of the original message
If you want you can use tar(1) to copy directories. As stated in the
EXAMPLES section of tar man page:
[...]
To move file hierarchies, use a command line like this:
tar -cf - -C srcdir . | tar xpf - -C destdir
[...]
Francesco Casadei
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?20000922174003.A1550>
