Hacker News new | ask | show | jobs
by jaysh 3963 days ago
Fun fact: "tar xf FILENAME" will auto-detect the compression when extracting FILENAME. You don't actually need to specify "z" for gzip, "j" for bzip, etc.
1 comments

That's GNU tar specific, though.
Works in modern bsdtar also, and as of a couple years ago they also added support for the "-a" flag to do the same thing when compressing.