From owner-freebsd-questions Mon Jan 18 10:46:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17841 for freebsd-questions-outgoing; Mon, 18 Jan 1999 10:46:23 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mercury.webnology.com (mercury.webnology.com [209.155.51.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA17836 for ; Mon, 18 Jan 1999 10:46:21 -0800 (PST) (envelope-from jooji@webnology.com) Received: from localhost (jooji@localhost) by mercury.webnology.com (8.9.2/8.9.2) with SMTP id MAA29394; Mon, 18 Jan 1999 12:46:34 -0600 (CST) Date: Mon, 18 Jan 1999 12:46:34 -0600 (CST) From: "Jasper O'Malley" To: "Marko's Work" cc: freebsd-questions@FreeBSD.ORG Subject: Re: about tar In-Reply-To: <01be430e$656259a0$9d83b7d1@vidbox> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 18 Jan 1999, Marko's Work wrote: > If I have a large tar file (ex/ backup.tgz), how would i go about > extracting just one file from the archive (without extracting the path > or anything else)?? Specify the filename as an argument to tar: tar xzf backup.tgz path/to/file/in/tarfile To see a list of the files in the tarball, do: tar tvzf backup.tgz (Leave out the "z" option in both commands if it's just a .tar archive, and not a .tgz or .tar.gz). Cheers, Mick The Reverend Jasper P. O'Malley dotdot:jooji@webnology.com Systems Administrator ringring:asktheadmiral Webnology, LLC woowoo:http://www.webnology.com/~jooji To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message