INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

how to unpack a .tar.gz file on Solaris ?

how to unpack a .tar.gz file on Solaris ?

(OP)
I have a tar.gz file that I need to unpack. I tried tar xvf filename and it didnt work.

RE: how to unpack a .tar.gz file on Solaris ?

Do a:

gunzip <filename>

It will then get rid of the .gz.  Then do a tar -xvf.

 

Blue Dragon

If I wasn't Blue, I would just be a Dragon...

RE: how to unpack a .tar.gz file on Solaris ?

gunzip -c file_name.tar.gz |tar xvf -

if you are lazy like me and want it done all at once.

RE: how to unpack a .tar.gz file on Solaris ?

Quote (djr111):

if you are lazy like me and want it done all at once.

...or if you want to retain the original .gz file unmodified and timestamp unchanged, not to mention not having large .tar files lying around that many forget to delete (not looking at any DBAs!!!!). smile

Annihilannic.

RE: how to unpack a .tar.gz file on Solaris ?

Depends on what version of tar your are running too.  If you have gtar installed there is a compress and decompress flag

/usr/local/bin/tar -xvzf filename.tar.gz

The tar that comes with Solaris.. doe not have compression build in.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close