I always remember that it's eXtract Ze File, tar -xzf
... But I'll be honest, I've not used it in years and years
linuxmemes
Hint: :q!
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
Please report posts and comments that break these rules!
Tar -xvf
Now do a standard pax
command.
tar --help
Well, bye everyone.
The fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.
Also, QED 🤠
tar --extract --file file.tar.gz
All those years of using nautilus have made me weak
tar x
tar --help
cpio is way worse
tar -xzvf file.tar
That's what I had in mind too. Tar's arguments are really intuitive.
x - eXtract
z - use gZip
v - Verbose
f - File (requires the path as an argument)
tar -cvzf /etc/
Edit: we're dead :(
tar
tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.
I know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.
Why remember/include the algorithm? Tar can infer that. It's just bsdtar xf filename.*
for everything. (bsdtar handles .zip as well)
The bomb said tar.
Yes, and tar works the same, it just doesn't handle zip files.
And even if we're pedantic: bsdtar is Arch Linux’ executable name for a port of the tar
command that is shipped by BSDs, so it's also tar
.