Date: Thu, 6 Nov 2003 17:51:38 -0500 From: parv <parv@pair.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Extracting individual Files via tar Message-ID: <20031106225138.GA1432@moo.holy.cow> In-Reply-To: <200311062200.hA6M0uLH074820@dc.cis.okstate.edu> References: <200311062200.hA6M0uLH074820@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
in message <200311062200.hA6M0uLH074820@dc.cis.okstate.edu>, wrote Martin McCormick thusly... > > The command > > tar ztf /usr/local/src/ports.tar.gz > > produces a table of contents just like the man page says it should. > The man page also says that individual files can be recovered or > listed but I haven't gotten that to work at all. if I try: > > $ tar zt ports/print/pstotext/ /usr/local/src/ports.tar.gz > > tar (child): /dev/sa0: Cannot open: Permission denied > tar (child): Error is not recoverable: exiting now You forgot the bit about default file... -f [hostname:]file --file [hostname:]file Read or write the specified file (default is /dev/sa0). If a hostname is specified, tar will use rmt(8) to read or write the specified file on a remote machine. ``-'' may be used as a file- name, for reading or writing to/from stdin/stdout. ...try this instead... tar zxf /usr/local/src/ports.tar.gz ports/print/pstotext/ - Parv --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106225138.GA1432>