• janAkali
    link
    fedilink
    English
    310 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
      610 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
        210 months ago

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

    • @mumblerfish
      link
      510 months ago

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

    • xigoi
      link
      fedilink
      310 months ago

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