- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What is the way to list files in a gz file?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 11:46 AM
тАО04-11-2008 11:46 AM
What is the way to list files in a gz file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 12:04 PM
тАО04-11-2008 12:04 PM
Re: What is the way to list files in a gz file?
You are confusing something. In gzip it compress single file extension will be "gz".
And in tar u can see the list of files.
But the extension must be ".tar"
if your file is a.tar.gz
first gunzip a.tar.gz
then, tar tvf a.tar
with the "t" option you can see the list without extract it.
Thanks & Regards
Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 12:05 PM
тАО04-11-2008 12:05 PM
Re: What is the way to list files in a gz file?
but you can always try feeding it into
various programs to see if anyone can make
sense of it:
gzip -dc file.gz | tar tfv -
and so on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 12:07 PM
тАО04-11-2008 12:07 PM
Re: What is the way to list files in a gz file?
> then, tar tvf a.tar
You must have _much_ more unused disk space
than I.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 12:50 PM
тАО04-11-2008 12:50 PM
Re: What is the way to list files in a gz file?
Try this:
gzcat filename | tar -tvf -
(Note there is a space between the 'f' and the second '-')
You could then redirect that output to a file or just pipe it to more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 01:30 PM
тАО04-11-2008 01:30 PM
Re: What is the way to list files in a gz file?
gunzip < file.gz | tar -tvf -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 01:43 PM
тАО04-11-2008 01:43 PM
Re: What is the way to list files in a gz file?
The salient fact here is that it's a
gzip-compressed "tar" archive, so if you know
how to deal with one of those, you're left
with only the ever-difficult decision of
exactly how you'd like to run gzip (or gzcat,
or gunzip).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2008 08:49 AM
тАО04-14-2008 08:49 AM