tar extracts gzip file even without -z flag
Hi, i was creating tar archive with tar command and extracting it.
To create tar: tar -cvzf test.tar.gz /test To extract: tar -xvf test.tar.gz extract command was a mistake, i should have used -z option for gzip filter. but interestingly it works even without -z. i couldn't found any useful reference on Google why it works. I have CentOS 6.2 linux. Can you please help me understanding why tar extract work for gzip archive without using -z flag? Is it expected? |
I guess the -a (--auto-compress use archive suffix to determine the compression program) option is a default, or maybe your site has TAR_OPTIONS set.
|
Perhaps, this one:
Quote:
|
The '-a' option is in since tar-0.15, IIRC.
|
All times are GMT -5. The time now is 12:08 PM. |