- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to see name of the files in tarred and zip...
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
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
тАО05-05-2009 03:36 PM
тАО05-05-2009 03:36 PM
What is command to see name of the files without un-tarring a tarred and zipped file like: abc.tar.gz
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 03:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 04:26 PM
тАО05-05-2009 04:26 PM
Re: how to see name of the files in tarred and zipped file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 06:13 PM
тАО05-05-2009 06:13 PM
Re: how to see name of the files in tarred and zipped file
# gzcat abc.tar.gz | tar -tvf -
This should do what you require.
Note that there is a space between the 'f' and the '-' in the 'tvf -'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 06:13 PM
тАО05-05-2009 06:13 PM
Re: how to see name of the files in tarred and zipped file
> I want to see the file names without
> untarring and unzipping abc.tar.gz
What, exactly, was the problem with the first
suggestion?
You might try reading the results of:
man gzip
man tar
to see what it would actually do. Then,
re-complain, if you can find any reason to.
If you think that you can find a way to see
what's in a gzip-compressed "tar" archive
without somehow using gzip and "tar" (or
equivalent programs), then please explain
which supernatural entity you expect to help
you to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 09:22 PM
тАО05-05-2009 09:22 PM
Re: how to see name of the files in tarred and zipped file
With our un-tar you can see the contant with tar -tvf option.
#tar -cvf to create a tar file
#tar -xvf to extract a tar file
#tar -tvf to see the content of a tar file with out extract it.
For more information see "man tar"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 12:27 AM
тАО05-07-2009 12:27 AM
Re: how to see name of the files in tarred and zipped file
gzcat abc.tar.gz | tar -tvf -
HTH,
Art