How to read a tarball

Todd Zullinger tmz at pobox.com
Tue May 2 04:03:15 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christofer C. Bell wrote:
> On 5/1/06, Stephen Liu <satimis at yahoo.com> wrote:
>>Hi folks,
>>
>>FC5_64
>>
>>Please advise how to read a tarball without decompressing it?
> 
> $ tar -tf filename.tar
> 
> or
> 
> $ tar -ztf filename.tar.gz
> 
> or
> 
> $ tar -jtf filename.tar.bz2
> 
> You might want to pipe it through more or less.

It's worth noting that the less command will do all of this for you on
most RH/FC (and other GNU/Linux) systems.  The LESSOPEN variable gets
set to call lesspipe.sh in the login process for both bash and csh
shells.  So you can just run:

$ less file.tar*

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Rowe's Rule: The odds are five to six that the light at the end of the
tunnel is the headlight of an oncoming train.
    -- Paul Dickson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkRW2gImGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1of+ACfdpYLLvvDRbAIGXgjBSCDMX6gL0cAoNSnycmP
NQddV5JLk9EGcomjL9XP
=Cco8
-----END PGP SIGNATURE-----




More information about the users mailing list