this post was submitted on 15 May 2024
881 points (98.6% liked)

linuxmemes

21160 readers
1354 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

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!

    founded 1 year ago
    MODERATORS
     

    Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck

    top 50 comments
    sorted by: hot top controversial new old
    [–] [email protected] 2 points 5 months ago

    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

    [–] [email protected] 1 points 5 months ago
    [–] [email protected] 1 points 5 months ago

    Now do a standard pax command.

    [–] [email protected] 7 points 5 months ago
    [–] [email protected] 1 points 5 months ago

    Well, bye everyone.

    [–] [email protected] 3 points 5 months ago

    The fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.

    Also, QED 🤠

    [–] [email protected] 2 points 5 months ago

    tar --extract --file file.tar.gz

    [–] [email protected] 2 points 5 months ago

    All those years of using nautilus have made me weak

    [–] [email protected] 7 points 5 months ago (1 children)
    [–] [email protected] 5 points 5 months ago
    [–] [email protected] 2 points 5 months ago

    cpio is way worse

    [–] [email protected] 10 points 5 months ago (1 children)
    [–] [email protected] 1 points 5 months ago

    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)

    [–] [email protected] 18 points 5 months ago* (last edited 5 months ago)

    tar -cvzf /etc/

    Edit: we're dead :(

    [–] [email protected] 8 points 5 months ago
    [–] [email protected] 6 points 5 months ago* (last edited 5 months ago)

    tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.

    [–] [email protected] 9 points 5 months ago (1 children)

    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.

    [–] [email protected] 6 points 5 months ago* (last edited 5 months ago) (1 children)

    Why remember/include the algorithm? Tar can infer that. It's just bsdtar xf filename.* for everything. (bsdtar handles .zip as well)

    [–] [email protected] 2 points 5 months ago (1 children)
    [–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

    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.

    load more comments
    view more: next ›