• janAkali
      link
      fedilink
      English
      311 months ago

      I don’t understand.
      How is it hard to remember: “eXtract File” = “tar xf …”? If tar is gZipped - it’s “tar xzf …”.
      I don’t think I’ve ever seen tarball that wouldn’t work with one of these two commands.

      • Programmer Belch
        link
        fedilink
        English
        611 months ago

        Usually the distro has tar in automatic and automatically detects which compression flag to use so tar xf ... usually just works

        • @chellomere
          link
          211 months ago

          Yeah it’s many years that I haven’t had to specify z, j etc.

      • @mumblerfish
        link
        511 months ago

        Never encountered a bz2 tar? Then the flag is j.

      • xigoi
        link
        fedilink
        311 months ago

        Just use tar xaf to auto-detect the format. (Mnemonic: “extract a file”)