How to make a tar file...
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.
tar -cvf filename.tar file/dir_path
tar -xvf filename.tar
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
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 -vxf
and -czf == 'compress ze files'
well what works for me is tar -xzvf "xtract ze vucking files"
No kidding that's how remember it
this...is actually brilliant! lol
Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈
Isn't that for zipped tar files? -xzf = extract zipped (tar) file.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.