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?