Date: Wed, 07 Apr 2004 09:13:19 -0400 From: Clint Gilders <techservices@onlinehobbyist.com> To: freebsd-questions@freebsd.org Subject: Re: howto Message-ID: <4073FE6F.5030801@onlinehobbyist.com> In-Reply-To: <20040407082128.GC3321@happy-idiot-talk.infracaninophile.co.uk> References: <000801c41c77$35828a50$2e01a8c0@Craig> <20040407082128.GC3321@happy-idiot-talk.infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <techservices@onlinehobbyist.com> Director of Technology Services OnlineHobbyist.com, Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4073FE6F.5030801>