- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Explode 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
Forums
Discussions
Discussions
Forums
Discussions
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
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
06-30-2003 12:25 AM
06-30-2003 12:25 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:31 AM
06-30-2003 12:31 AM
Re: Explode a *.gz file
gunzip
or
gzip -d
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:37 AM
06-30-2003 12:37 AM
Re: Explode a *.gz file
Use gzip -dc file1.gz > file1
or
gzip -d file1.gz
For more information use
man gzip
or
gzip -h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:39 AM
06-30-2003 12:39 AM
Re: Explode a *.gz file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:41 AM
06-30-2003 12:41 AM
Re: Explode a *.gz file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:42 AM
06-30-2003 12:42 AM
Re: Explode a *.gz file
pay attention that a *.tar file can explode files in every directory.
use
tar -tvf yourfile.tar
to see the content. pay attention to absolute/relativa path, or you may overwrite something usefull.
to extract
tar -xvf yourfile.tar
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:48 AM
06-30-2003 12:48 AM
Re: Explode a *.gz file
#gunzip a.tar.gz
#tar xvf a.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:48 AM
06-30-2003 12:48 AM
Re: Explode a *.gz file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 12:58 AM
06-30-2003 12:58 AM
Re: Explode a *.gz file
GNU tar has gzip builtin:
# gtar -tzvf file.tgz
for an index
# gtar -xvzf file.tgz to extract
Mind you that GNU tar *by default* strips all leading slashes, so it does not have the side effect mentioned above that files can be extracted all over your system
Enjoy, have FUN! H.Merijn
( GNU tar available on my ITRC site: https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:06 AM
06-30-2003 01:06 AM
Re: Explode a *.gz file
My 2 cents.
You can combine tar and gzip. When you want to extract/view the files from the gzipped-tarred file use this.
gunzip -c tmp_file.tar.gz|tar -xvf -
You have to use tar -tvf instead of -xvf for viewing the content.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:59 AM
06-30-2003 01:59 AM
Re: Explode a *.gz file
# gunzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 04:49 AM
06-30-2003 04:49 AM
Re: Explode a *.gz file
# gtar -xvzf file.tgz
regular tar has a bad history. ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:20 PM
06-30-2003 01:20 PM
Re: Explode a *.gz file
gunzip -c
Or use the gnu tar, download from:
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/
gtar xzf
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:37 PM
06-30-2003 01:37 PM
Re: Explode a *.gz file
If you want to un-tar the entire file you can do the following:
# gzcat file.tar.gz | tar -xvf -
If you want to extract a single file out of the file.tar.gz file, you can do:
# gzcat file.tar.gz | tar -xvf - filename
or
# gzcat file.tar.gz | tar -xvf - dir/filename