Uncompressing a .tar.gz file on Sun’s release of tar

Tags: |

While trying to uncompress a tar.gz file, if you get a message something like this:

 
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@/[0-7]][bfk][X...]

You are using a Sun’s release of tar and -z is not a valid option. Instead, try following commands:

 
gunzip file.tar.gz

You will get a tar file, run this:

 
tar xf file.tar

Cheers!

Related posts:

  1. Error Uncompressing tar.gz file tar: Archive contains obsolescent base-64 headers
  2. How to tar/untar, compress/uncompress files/folders using php script
  3. Enabling PHP Short Tags in php.ini file or using .htaccess file