From owner-freebsd-questions Tue Nov 20 12:26: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-92-93.knology.net [24.214.92.93]) by hub.freebsd.org (Postfix) with ESMTP id 64C9A37B439 for ; Tue, 20 Nov 2001 12:25:52 -0800 (PST) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.11.6/8.11.6) id fAKKCeQ53622; Tue, 20 Nov 2001 14:12:40 -0600 (CST) (envelope-from dkelly) Date: Tue, 20 Nov 2001 14:12:40 -0600 From: David Kelly To: David Kirchner Cc: brain_damaged , freebsd-questions@FreeBSD.ORG Subject: Re: untarring a chicken I mean a file Message-ID: <20011120141240.A53581@grumpy.dyndns.org> References: <200111201456.AA1966932132@florida-wireless.com> <20011120115606.P9030-100000@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011120115606.P9030-100000@localhost>; from davidk@accretivetg.com on Tue, Nov 20, 2001 at 11:56:25AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 20, 2001 at 11:56:25AM -0800, David Kirchner wrote: > On Tue, 20 Nov 2001, brain_damaged wrote: > > > how do I untar something to a specific location or can't I . > > Yes i read man tar but did not get it from that. > > It's in there. :-) Check out '-C' Or easier yet, cd to the place you want the stuff before launching tar. Even if you have to spell out a long path to get back to the .tgz file. Your home directory is always ~/ so its pretty easy to get to with % tar -xvzf ~/tarfile.tgz I always have a phobia as to whether or not the tar file was bundled in a single directory or whether or not it was hundreds of little files without a (sub)directory. So even if I expand it in my home directory I'll create a throwaway directory to expand it into something like this: % mkdir junk % cd junk % tar -xvzf ../tarfile.tgz This way everything in junk/ came from the tar archive. Expanding into an otherwise occupied directory can be hard to clean up afterwards if it does something you don't like. Come to think of it the FreeBSD ports collection does similar with a "work/" directory. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message