From owner-freebsd-questions@FreeBSD.ORG Wed Apr 7 06:15:37 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EA6C16A4CE for ; Wed, 7 Apr 2004 06:15:37 -0700 (PDT) Received: from simmts3-srv.bellnexxia.net (simmts3-srv.bellnexxia.net [206.47.199.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A4AE43D54 for ; Wed, 7 Apr 2004 06:15:37 -0700 (PDT) (envelope-from techservices@onlinehobbyist.com) Received: from freebie2.perlnerd.com ([67.71.98.84]) by simmts7-srv.bellnexxia.netESMTP <20040407131319.SZHW13427.simmts7-srv.bellnexxia.net@freebie2.perlnerd.com> for ; Wed, 7 Apr 2004 09:13:19 -0400 Received: from onlinehobbyist.com ([192.168.1.185])i37EKQF1076635 for ; Wed, 7 Apr 2004 10:20:27 -0400 (EDT) (envelope-from techservices@onlinehobbyist.com) Message-ID: <4073FE6F.5030801@onlinehobbyist.com> Date: Wed, 07 Apr 2004 09:13:19 -0400 From: Clint Gilders Organization: OnlineHobbyist.com, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, fr-ca, de, en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <000801c41c77$35828a50$2e01a8c0@Craig> <20040407082128.GC3321@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040407082128.GC3321@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: howto X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 13:15:37 -0000 Matthew Seaman wrote: > On Wed, Apr 07, 2004 at 04:06:18AM -0400, Jerry Hatok wrote: > > >> I am trying to copy files from a cd I have into my usr directory. The cd has one directory with a lot of subdirectories and files. Is there a command that I can copy everything at once? If so what is it? If not what would you suggest being the fastest way to copy everything? > > > There's many, many ways of doing this sort of thing under Unix. > Assuming that your CD Rom is mounted under /cdrom and you want to copy > everything onto /home/jerry/cdimage then: > > % cd /cdrom > % mkdir /home/jerry/cdimage > % tar -cvf - . | ( cd /home/jerry/cdimage ; tar -xvpf - ) > > However there are any number of commands you could substitute for that > 3rd line: > > % find . -depth -print | cpio -pdmu /home/jerry/cdimage > > or, if you're installed the net/rsync port: > > % rsync -avx --delete /cdrom/ /home/jerry/cdimage/ Are these not a little bit of overkill? Seems to me (in this case) it could be as simple as: cp -Rp /cdrom/ /home/jerry/ -- Clint Gilders Director of Technology Services OnlineHobbyist.com, Inc.