Today I was reading @b0rkJulia Evans 's comic about tar: wizardzines.com/comics/tar/?ut

When I learned how to use `tar` on Linux (probably ~20 years ago?) I learned that you don't need to memorize all the compression flags (`-z`, `-j`, `-J`, `-Z`) because tar auto-detects the compression format when extracting/listing.

This is handy because then I only have to learn the flag for my _favorite_ compression format when creating tarballs, and let the auto-detection figure it out for tarballs I receive.

I'm surprised the example in this comic uses the compression format when listing (`-tjvf`). Does that mean there's a version of `tar` in common usage that doesn't support auto-detection? Or is the auto-detection unreliable in some common circumstance? Or some third possibility I haven't thought of?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/computerdruid/statuses/116144443938733689 on your instance and quote it. (Note that quoting is not supported in Mastodon.)