[–] 2 points 2 days ago

Same. And if it's compressed you just add the appropriate shorthand in the letter soup somewhere in the middle:
z for gzip j for bzip (for some reason)
..and I'm sure the other common algorithms have associated letters in tar. If not, pipe it

  • source
  • parent
  • context
  • [–] 3 points 2 days ago (1 child)

    Hah, I was taught to do netstat -tulpn. "Tulpen" is German for "tulips".

    Also, these days ss has generally replaced netstat (cause it's built into the kernel), so now I get to tell our trainees to run ss -tulpn.
    Every time, they think I'm bullshitting them, which is hilarious.

  • source
  • parent
  • context
  • [–] 37 points 2 days ago (5 children)

    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.

  • source
  • parent
  • context
  • [–] 16 points 2 days ago* (last edited 2 days ago) (1 child)

    ffmpeg is always funny to me, because it feels like you could convert anything into anything, if you just knew the right flags, but 99% of my use is extracting a clip out of a video file.

    And the command for that is in my shell history, so I wouldn't know the flags either. Β―\_(βŠ™Κ–βŠ™)/Β―

  • source
  • parent
  • context
  • [–] 7 points 2 days ago* (7 children)

    This comment got my brain stuck in an infinite loop: there's a rabbit on the Japanese moon, there are tons of moon themed jazz songs, the moon is cheeze, moonshine, moon rhymes with boon, Moon River is a beautiful song, Kame-sennin blew up the moon to make Son Goku revert to his human form, Moonraker was only "meh..."...

    I still don't get it. WHAT does this expression mean 😭

  • source
  • parent
  • context
  • [–] 13 points 2 days ago* (2 children)

    Tar (some versions at least?) is actually smart enough to detect which format to use based on file extension of the output, so you don't need to remember which flag corresponds to which compressor. Examples:

    tar -caf archive.tar.xz [files]
    tar -caf archive.tar.bz2 [files]
    
    # extract
    tar -xf archive.tar.xz
    tar -xf archive.tar.bz2
    

    So you really only need to remember that c means create, x means extract

  • source
  • [–] 5 points 2 days ago* (last edited 2 days ago)

    e[x]tract; g[z]ip; [v]erbose; [f]ile

    Reordered, and we can have [v]erbosely e[x]tract g[z]ip [f]ile, or tar vxzf [file]

    I find it more difficult to remember other options. Might stick better if pronouncing the g in gzip similarly as GNU insists GNU be pronounced, with a hard gβ€”never really tried it, but sounds a little funny. Actually, I think I first remembered it as g sounding like the, making for extract the zip file, but with a soft g; I felt the former put too much emphasis on a letter not used as an option.

  • source
  • parent
  • context
  • view more: β€Ή prev next β€Ί