457

#mindhacks 😎

Comments
  • 5
    Yeah, like why not learn new language just to remember three freaking letters.
  • 7
    YES! Finally a way to remember!

    Thank you!
  • 2
    @coolq sharing what I bumped into and appreciatedπŸ˜‰
  • 1
    lol good way to remember them
  • 1
  • 1
    With latest tar versions, you can actually do

    tar xf <filename>

    And it'll work out the decompression method by file extension for you.
  • 0
    @kenogo eXtract Jour Files
  • 5
    -x extract
    -c compress
    -z gzip
    -j bzip
    -v verbose
    -f file

    Thats how I remember it πŸ˜“
  • 0
    But when you don't use gzip
  • 3
    I'm gonna go out on a limb here and say that this is one of the use cases that 'alias' was invented for.
  • 0
    Or you could be a real su and just know how to use tar
  • 1
    Dude, thank you. I wish I had more than one upvote to give you
  • 2
    @azous bzip being a j flag is self documenting. Don't know why people have so much trouble. Lol
  • 1
    bdsm! I mean tysm!
  • 6
    How I learned it
  • 3
    @BlasterJoni wow. I fucking love it.
  • 1
    You're a life saver
  • 0
    How I remember it:

    man tar
  • 1
    Omg this is actually really helpful
  • 0
    How is that not obvious?
  • 1
    -j is xz
    -z s gzip

    -c is create archive
    -x is xtract te archive

    That's how this stuff works
  • 0
    With my experience in the terminals, I've learnt to use the long options and make a sentence / story out of it for all the commands that I use.

    tar --create (a) --gzip (archive with) --file <archive-name.tar.gz> (using the files) files/*

    ls (with) --human -lt (those 2 don't have long options) (in) --reverse

    sort (in) --human (form)

    du (in) --human (form with) --max-depth 1

    I've always struggled with the find command (which is probably also where this storyfication of commands originated)

    find (files in) <directory> (with the) -name '<*whatever-name*>' (in a) -maxdepth (of) 1 (that has) -perm /<permission-mode> (that is an) -executable (which is) -newer (than) <some-file> (and is owned by the) -user <username> (and then) -delete (it).

    To end that beautiful story, I sometimes combine it with the stories I mentioned above too with -exec flag.

    PS : most of this doesn't work out of the linux environment (I'm looking at you BSD and macOS)
Add Comment