this post was submitted on 15 May 2024
883 points (98.5% liked)

linuxmemes

24633 readers
873 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years 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
    [–] oleorun@real.lemmy.fan 147 points 11 months ago* (last edited 11 months ago) (2 children)
    [–] dohpaz42@lemmy.world 148 points 11 months ago (5 children)

    In the true spirit of UNIX, it’s tar -h

    [–] Gork@lemm.ee 37 points 11 months ago
    load more comments (4 replies)
    [–] jflorez@sh.itjust.works 68 points 11 months ago (2 children)

    You just killed us all by putting a space between the dashes

    [–] oleorun@real.lemmy.fan 62 points 11 months ago (1 children)

    Fuckin autocorrect was the death of us all.

    load more comments (1 replies)
    [–] Phrodo_00@lemmy.world 28 points 11 months ago* (last edited 11 months ago)

    Or by using gnu style options on potentially bsd tar

    [–] JackGreenEarth@lemm.ee 85 points 11 months ago (3 children)
    [–] woelkchen@lemmy.world 51 points 11 months ago (1 children)

    Just tar, no arguments. Does nothing, still a valid command, no?

    [–] foobaz@lemmy.world 35 points 11 months ago

    Exit code 2 -> boom

    [–] rrconkle@lemmy.zip 31 points 11 months ago
    tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options
    Try 'tar --help' or 'tar --usage' for more information.
    
    [–] doctorzeromd@sopuli.xyz 24 points 11 months ago

    Boom. tar --help for anyone wondering

    [–] kameecoding@lemmy.world 73 points 11 months ago (2 children)
    [–] WhiskyTangoFoxtrot@lemmy.world 150 points 11 months ago (2 children)
    [–] kameecoding@lemmy.world 49 points 11 months ago (2 children)

    ah fuck, didn't even notice

    [–] justme@lemmy.dbzer0.com 18 points 11 months ago (3 children)

    quod erat demonstrandum :D

    load more comments (3 replies)
    [–] Bosht@lemmy.world 14 points 11 months ago

    Christ this comment chain is perfect lmfao

    [–] DogWater@lemmy.world 22 points 11 months ago

    I like the way you pointed that out lmao

    [–] Voroxpete@sh.itjust.works 44 points 11 months ago

    .... aaaaaand you've killed us all.

    [–] prettybunnys@sh.itjust.works 52 points 11 months ago (9 children)

    tar -czvf tar_name.tar.gz ./

    [–] v_krishna@lemmy.ml 47 points 11 months ago (2 children)

    I even read this aloud in my head as "CREATE ZE VUCKING FILE" in a particularly bad German accent same as over 20 years ago when a friend I worked for drilled it in my head.

    [–] RealPuyo@lemmy.world 14 points 11 months ago (1 children)

    Read it in tf2 medics voice

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (8 replies)
    [–] doggle@lemmy.dbzer0.com 51 points 11 months ago (3 children)

    tar --version

    You're welcome

    [–] bitwaba@lemmy.world 17 points 11 months ago (5 children)

    I'd have gone with tar --help

    load more comments (5 replies)
    load more comments (2 replies)
    [–] Lime66@lemmy.world 45 points 11 months ago (1 children)
    load more comments (1 replies)
    [–] b3an@lemmy.world 45 points 11 months ago (7 children)

    Somehow, idk why. This one is stuck in my head:

    tar -zxvf filename.tar.gz
    
    [–] far_university1990@feddit.de 85 points 11 months ago* (last edited 11 months ago) (1 children)

    tar xzvf

    eXtract Ze Vucking File

    [–] Bread@sh.itjust.works 16 points 11 months ago

    I have to do this command often at work and I can never remember the letters perfectly. This is actually useful, thanks!

    [–] BestBouclettes@jlai.lu 17 points 11 months ago* (last edited 11 months ago) (3 children)

    The bomb runs AIX. I'm sorry, you're dead

    load more comments (3 replies)
    load more comments (5 replies)
    [–] llothar@lemmy.ml 43 points 11 months ago (3 children)

    tar -xzf stands for tar eXtract Ze Filez

    load more comments (3 replies)
    [–] brlemworld@lemmy.world 40 points 11 months ago (2 children)
    load more comments (2 replies)
    [–] j4k3@lemmy.world 34 points 11 months ago (1 children)
    [–] WhoLooksHere@lemmy.world 16 points 11 months ago (3 children)
    [–] saigot@lemmy.ca 21 points 11 months ago

    -v is verbose

    load more comments (2 replies)
    [–] Zos_Kia@lemmynsfw.com 33 points 11 months ago (1 children)

    There's an easy mnemonic for that : Compress Ze Vucking File !

    load more comments (1 replies)
    [–] elrik@lemmy.world 27 points 11 months ago (4 children)

    How does it verify the command is valid? Does it run what I enter?

    If so, just give it an infinite loop followed by some attempt at a tar command:

    while true; do :; done; tar -xyz
    
    [–] velvetThunder@lemmy.zip 35 points 11 months ago (1 children)

    Next time I build a bomb I let the timer continue while the command is running.

    [–] Voroxpete@sh.itjust.works 15 points 11 months ago

    Yeah, what kind of idiot doesn't parallelize their timer function.

    [–] mlg@lemmy.world 26 points 11 months ago

    Blue Team: "Okay everyone let's make sure this is absolutely the correct input"

    Red Team: "Lmao lets try this 90mb list of bash command injection patterns"

    load more comments (2 replies)
    [–] samus12345@lemmy.world 22 points 11 months ago (3 children)

    I'd like to know if there are any XKCDs that are no longer relevant.

    load more comments (3 replies)
    [–] atx_aquarian@lemmy.world 19 points 11 months ago (3 children)

    I hitched my horse to just what I consider the basics--zip and unzip--and that has made it easy for me. But I've been stuck on those.

    Extract anything:

    tar xf <archive_file>
    

    Create a tbz2 archive:

    tar cjf <archive_file.tbz2> <stuff to put in it>
    

    (And tossing in a -v is pretty universal, if that's your thing.)

    Some day, instead of commenting on a ~~reddit~~ Lemmy post, I think I'll Google how to tell it to use .xz.

    Ok, you know what? Today is finally that day. It's just capital -J instead of lower-case -j! That's easy enough to remember, I guess.

    [–] partial_accumen@lemmy.world 14 points 11 months ago

    Stay by the phone always. We may need you to defuse a bomb someday.

    load more comments (2 replies)
    [–] UnculturedSwine@lemmy.world 18 points 11 months ago* (last edited 11 months ago)

    tar -cvzf /etc/

    Edit: we're dead :(

    [–] umbraroze@lemmy.world 16 points 11 months ago (6 children)

    Actually this reminds me, what is the deal with tar command recommendations to use or not use dash? I know GNU tar accepts both (e.g.) tar xvf file.tar and tar -xvf file.tar, but at some points people were like "NO! Don't use the dash! It's going to maybe cause issues somewhere, who knows!" and I was like "OK". Something to do with people up designing the Unix specs?

    load more comments (6 replies)
    [–] tisktisk@monero.town 16 points 11 months ago (8 children)
    load more comments (8 replies)
    [–] m4@kbin.social 15 points 11 months ago (1 children)

    I just can recall tar xvzf but can't even remember what it's supposed to do.

    [–] Hawke@lemmy.world 29 points 11 months ago (3 children)

    eXtract, Verbose, gZip, File.

    Not sure why it doesn’t need the dash though.

    [–] d00phy@lemmy.world 16 points 11 months ago (1 children)

    The dash used to be how to could tell how long someone had been using tar. If they started with Linux, they probably use a dash. If they started on a UNIX variant, they probably don’t. Either way, the dash isn’t needed.

    Also recently learned that recent versions of tar will autodetect compression. So for extraction, you just need β€œtar xf β€œ

    load more comments (1 replies)
    [–] r4venw@kbin.social 14 points 11 months ago

    I always learnt it as Xtract Zee File and to make a tar ball, you want to Compress Zee File

    load more comments (1 replies)
    [–] MyFairJulia@lemmy.world 15 points 11 months ago (1 children)

    Remember: Just tell tar to Xtract Z File.

    load more comments (1 replies)
    load more comments
    view more: next β€Ί