How to untar a gz file in Unix

| Posted by watashii | Filed under Unix

untargz

For a .gz file,

$ gunzip myfile.gz

For .tar.gz file,

$ gzip -dc myfile.tar.gz | tar xvf -

Share:

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Print
  • email

Tags:

One Response to “How to untar a gz file in Unix”

  1. Leela Says:
    July 6th, 2009 at 6:55 am

    Thanks for your tips !!

    i know another way ..

    $tar -xvzf myfile.tar.gz

Leave a Reply