I downloaded a .gz
file with anonymized Census data and around 1 GB compressed. I am unable to inspect it with tar
:
$ tar -tf census.csv.gz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
but I can inspect and decompress it with gzip
:
$ gzip -l census.csv.gz
compressed uncompressed ratio uncompressed_name
949332135 886077017 -7.2% census.csv
$ gzip -d census.csv.gz
I can also extract the archive by double-clicking, which opens Archive Utility. I am more confused because the man
page for tar
says that it has the gzip method.
Can tar
list and decompress .gz
files?
Notes: gzip
is /usr/bin/gzip
on macOS High Sierra 10.13.5.
tar
able to decompresstar.gz
files but not.gz
files (without.tar
)?