• janAkali
    link
    fedilink
    English
    31 year 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
      61 year ago

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

      • @chellomere
        link
        21 year ago

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

    • @mumblerfish
      link
      51 year ago

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

    • xigoi
      link
      fedilink
      31 year ago

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