Tradional Usage
  tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG...]

It is invigorating.

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      27
      ·
      11 hours ago

      tar is usually smart enough to figure that .tar.gz is a compressed archive, so tar xvf suffices.

      Moreover, .tar.xz archives are much more common nowadays, and the flag to tell tar to use xz decompression is J. Yes, uppercase J I shit you not, because all other letters of alphabet were already taken. The next commandline option added to tar is going to be a Unicode emoji symbol.

      • ruby@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        7 hours ago

        i always forgot about -J so i got used to writing tar --xz -cvf archive.tar.xz file1 file2… instead. it’s a bit more explicit and i’ll never have to hunt for the same flag in the man page again.

        • pelya@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          6 hours ago

          Burrows–Wheeler algorithm or block-compression algorithm, the bzip2 file compression program was developed by Julian Seward.

          Ah yes, totally makes sense.

          XZ Utils started as a Unix port of Igor Pavlov’s LZMA (Lempel–Ziv–Markov) algorithm, by Lasse Collin, and then by the Tukaani Project.

          So apparently the uppercase J stands for “that guy who made a better compression algorithm than Julian”.