How to make a tar file...
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 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.
c
x
$tar
tar -cvf filename.tar file/dir_path
tar -xvf filename.tar
at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"
Thank you so much.
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.
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
tar -vxf
and -czf == 'compress ze files'
Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How to make a tar file...
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
c
option and for extracting replacec
withx
==>$tar
will remain same for both Lol :) .tar -cvf filename.tar file/dir_path
&&tar -xvf filename.tar
.at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"
Thank you so much.
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.
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'
Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈