That’s a fair point. For example, if you run:
tar -xf archive.tar.gz or tar -xf archive.tar.xz
it will detect the correct decompression method (gzip, xz, etc.) without needing to specify -z or -J.
1 Like