Today I Learned

hashrocket A Hashrocket project

tar automatically detects file type

For years I have used tar xzf example.tar.gz to decompress tar.gz files and tar xjf example.tar.bz2 to decompress tar.bz2 files. It turns out specifying the compression type (the z or j) is unnecessary. tar can automatically determine the file type. Now I can use tar xf example.tar.gz.

See More #command-line TILs