this post was submitted on 06 Jan 2024
38 points (60.7% liked)

linuxmemes

20751 readers
1131 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] janAkali@lemmy.one 3 points 8 months ago (3 children)

I don't understand.
How is it hard to remember: "eXtract File" = "tar xf ..."? If tar is gZipped - it's "tar xzf ...".
I don't think I've ever seen tarball that wouldn't work with one of these two commands.

[–] programmer_belch@lemmy.dbzer0.com 6 points 8 months ago (1 children)

Usually the distro has tar in automatic and automatically detects which compression flag to use so tar xf ... usually just works

[–] chellomere@lemmy.world 2 points 8 months ago

Yeah it's many years that I haven't had to specify z, j etc.

[–] mumblerfish@lemmy.world 5 points 8 months ago

Never encountered a bz2 tar? Then the flag is j.

[–] xigoi@lemmy.sdf.org 3 points 8 months ago

Just use tar xaf to auto-detect the format. (Mnemonic: “extract a file”)