Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2001 20:50:20 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        "G. Jason Middleton" <gmiddl1@gl.umbc.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: listing the contents of a tar file
Message-ID:  <20010411205020.A82373@scientia.demon.co.uk>
In-Reply-To: <Pine.SGI.4.31L.02.0104111544280.3464289-100000@irix2.gl.umbc.edu>
References:  <Pine.SGI.4.31L.02.0104111544280.3464289-100000@irix2.gl.umbc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
G. Jason Middleton wrote:

> I wanna see what is in one of my newly created tar files do do this i did
> a
> tar -list filename.tgz

tar tzf filename.tgz

t == list
z == zipped file
f == filename

Add v (verbose) to get an 'ls -l' style listing.

If you don't specify a file with the "f" flag it will use the tape drive
by default.  Note that you don't need "-" before the command flags as
with most commands, tar's just a bit weird like that.

-- 
Ben Smithurst / ben@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010411205020.A82373>