PDA

View Full Version : How can I view contents of config.tbz?



pelican
02-05-2004, 04:54 PM
How can I view the contents of configs.tbz in my save floppy or thumb drive? I tried bzip but it seems to be confused by the "t" in /tbz.

pelican

baldyeti
02-05-2004, 04:58 PM
bzip2 -dc < config.tbz | tar tvf - in order to view the archive contents,
bzip2 -dc < config.tbz | tar xvf - in order to extract.

----------

Erh...actually that's the old way, recent tars should directly support bzip compression through the 'j' flag, so that'd be
tar -tjvf config.tbz

pelican
02-05-2004, 05:27 PM
Thanks Baldyeti - your scripts work perfectly.

Nice name ;-)

Pelican