I just discovered that 'tar -xf' will automatically figure out what kind of compressed file it is, so you don't have to add -z, -Z, -j, -J, etc.
I guess better late than never. Per GNU Tar release notes for version 1.15 in December 2024:
Compressed archives are recognised automatically, it is no longer necessary to specify -Z, -z, or -j options to read them. Thus, you can now run tar tf archive.tar.gz and expect it to work!
https://www.gnu.org/software/tar/
On Oct 4, 2026, at 22:43, William Park via Talk <talk@lists.gtalug.org> wrote:
I just discovered that 'tar -xf' will automatically figure out what kind of compressed file it is, so you don't have to add -z, -Z, -j, -J, etc. ------------------------------------ Description: GTALUG Talk Unsubscribe via Talk-unsubscribe@lists.gtalug.org Start a new thread: talk@lists.gtalug.org This message archived at https://lists.gtalug.org/archives/list/talk@lists.gtalug.org/message/TGRU3TJ...
I meant 2004 of course :-) Muscle memory used to type current dates.
On Oct 9, 2026, at 13:42, Alex Kink via Talk <talk@lists.gtalug.org> wrote:
I guess better late than never.
Per GNU Tar release notes for version 1.15 in December 2024:
Compressed archives are recognised automatically, it is no longer necessary to specify -Z, -z, or -j options to read them. Thus, you can now run tar tf archive.tar.gz and expect it to work!
https://www.gnu.org/software/tar/
On Oct 4, 2026, at 22:43, William Park via Talk <talk@lists.gtalug.org> wrote:
I just discovered that 'tar -xf' will automatically figure out what kind of compressed file it is, so you don't have to add -z, -Z, -j, -J, etc. ------------------------------------ Description: GTALUG Talk Unsubscribe via Talk-unsubscribe@lists.gtalug.org Start a new thread: talk@lists.gtalug.org This message archived at https://lists.gtalug.org/archives/list/talk@lists.gtalug.org/message/TGRU3TJ...
------------------------------------ Description: GTALUG Talk Unsubscribe via Talk-unsubscribe@lists.gtalug.org Start a new thread: talk@lists.gtalug.org This message archived at https://lists.gtalug.org/archives/list/talk@lists.gtalug.org/message/W6TUEDH...
On Sun, Oct 04, 2026 at 10:43:10PM -0400, William Park via Talk wrote:
I just discovered that 'tar -xf' will automatically figure out what kind of compressed file it is, so you don't have to add -z, -Z, -j, -J, etc.
I always used -a to make it auto detect the compression type. Did that become optional? -- Len Sorensen
participants (3)
-
Alex Kink -
Lennart Sorensen -
William Park