• janAkali
      link
      fedilink
      English
      39 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
        69 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
          29 months ago

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

      • @mumblerfish
        link
        59 months ago

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

      • xigoi
        link
        fedilink
        39 months ago

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