source

img title=“I don’t know what’s worse–the fact that after 15 years of using tar I still can’t keep the flags straight, or that after 15 years of technological advancement I’m still mucking with tar flags that were 15 years old when I started.”

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      I think GNU tar automatically detects the compression, making -a unnecessary in that case.

      • kevincox
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        And -z. tar -xf foo.tar.{gz,xz,zstd,...} will work perfectly fine.