I figured out how to remember it. To create tar, use c option and for extracting replace c with x ==> $tar will remain same for both Lol :) . tar -cvf filename.tar file/dir_path && tar -xvf filename.tar.
We're a place where coders share, stay up-to-date and grow their careers.
How to make a tar file...
at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"
Thank you so much.
That's a great way! Jajajaaj
But it's important to note that tar is smart enough to detect the format so I prefer the general
tar -vxfand -czf == 'compress ze files'
well what works for me is tar -xzvf "xtract ze vucking files"
No kidding that's how remember it
Isn't that for zipped tar files? -xzf = extract zipped (tar) file.
Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈
I threw this one at a dev I used to work with. He answered instantly, he could have disarmed 2 bombs with that speed.
Instant respect gained
I figured out how to remember it. To create tar, use
coption and for extracting replacecwithx==>$tarwill remain same for both Lol :) .tar -cvf filename.tar file/dir_path&&tar -xvf filename.tar.