DEV Community

Discussion on: What do you Google EVERY. SINGLE. TIME. and never just memorize?

aminarria profile image
Amin Arria

How to make a tar file...

tbodt profile image
tbodt • Edited on

xkcd tar

baamenabar profile image
B. Agustín Amenábar Larraín

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

sanjay555 profile image
Sanjayshr • Edited on

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.

damian profile image

at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"

dean profile image
Dean Bassett

Thank you so much.

aminspeaks profile image
Amin Mohamed Ajani

well what works for me is tar -xzvf "xtract ze vucking files"
No kidding that's how remember it

Thread Thread
binarydigit profile image
BinaryDigit actually brilliant! lol

jgauffin profile image
Jonas Gauffin • Edited on

Isn't that for zipped tar files? -xzf = extract zipped (tar) file.

aminarria profile image
Amin Arria

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

cdw9 profile image
Chrissy Wainwright

and -czf == 'compress ze files'

loilo profile image
Florian Reuschel

Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈

brandonhowkins02 profile image
brandonhowkins02 • Edited on

Hey, I also want to make a tar file for my website name:Lenny face. Let me know if the given suggestions works for you!