From owner-freebsd-questions Tue Nov 20 15:22:33 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 3B8A837B417 for ; Tue, 20 Nov 2001 15:22:27 -0800 (PST) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.11.6/8.11.6) id fAKNMAR55111; Tue, 20 Nov 2001 17:22:10 -0600 (CST) (envelope-from dkelly) Date: Tue, 20 Nov 2001 17:22:10 -0600 From: David Kelly To: Michael Lucas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: untarring a chicken I mean a file Message-ID: <20011120172210.A53989@grumpy.dyndns.org> References: <200111201456.AA1966932132@florida-wireless.com> <20011120115606.P9030-100000@localhost> <20011120141240.A53581@grumpy.dyndns.org> <20011120153311.A14729@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011120153311.A14729@blackhelicopters.org>; from mwlucas@blackhelicopters.org on Tue, Nov 20, 2001 at 03:33:11PM -0500 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 03:33:11PM -0500, Michael Lucas wrote: > On Tue, Nov 20, 2001 at 02:12:40PM -0600, David Kelly wrote: > > 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 > > > > You can also check with the -t option. > > tar -tzvf tarfile.tgz will list the contents of a tarball, without > extracting it. But of course. Sometimes the listing output is simple enough that one can easily visually verify files are not going to spray everywhere all over your directory. But what the heck? If I want them extracted then I want them extracted and can use them where ever they land as long as they are separate from everything else so that clean up is easy. My point being it doesn't much matter if the extracted data is one or two subdirectories down. If it does matter than its trivial to mv it up one or two. Hmm. Wonder what would happen if ../ could be embedded into a file path inside of a tar archive? Could make a worse mess for those who don't expect it. -- 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