this post was submitted on 01 Dec 2025
560 points (98.3% liked)

linuxmemes

28573 readers
1221 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.
  • Don't come looking for advice, this is not the right community.
  • 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
     

    also i hope the curl joke is correct i don't use it that much

    also i hope there are itysl fans here

    top 50 comments
    sorted by: hot top controversial new old
    [–] renegadespork@lemmy.jelliefrontier.net 139 points 3 weeks ago (5 children)
    [–] Axolotl_cpp@feddit.it 56 points 3 weeks ago (2 children)
    [–] krashmo@lemmy.world 66 points 3 weeks ago

    I really like that the link at the bottom of the page says "check out more stuff you should be using" but that URL takes you to a page where the curl article is the only link.

    "more coming soon. Or not. I don't owe you shit"

    A majestic site indeed. Bravo sir.

    [–] poinck@lemmy.world 6 points 3 weeks ago

    I enjoyed every bit of it [=

    [–] de_lancre@lemmy.world 17 points 3 weeks ago (1 children)

    Now you have syntax highlighting and JSON parsing. Total install size: ~10MB. Total startup time: instant. Total RAM usage: negligible. Total feelings of superiority: immeasurable.

    As someone who often does curl API requests and also come up to idea of putting them in jq β€” I felt superior just by reading this, thank you

    [–] renegadespork@lemmy.jelliefrontier.net 5 points 3 weeks ago (2 children)

    curl | jq is like the web equivalent of cat | grep

    load more comments (2 replies)
    [–] Hadriscus@jlai.lu 10 points 3 weeks ago (1 children)

    the hostility is hilarious πŸ˜‚

    especially since I had no idea what any of it means πŸ˜‚ and yet it manages to sound so obvious

    [–] luciferofastora@feddit.org 5 points 3 weeks ago (1 children)

    The low-tech version of it is that there is a certain technical way of asking computers for stuff, usually across the Internet. To do that as a human, for instance to build a system that can ask or answer these questions, there are a few different tools.

    One is Postman, which is a fancy, graphical tool that essentially loads a full browser for interacting with parts of the question, sending it and displaying the answer. Of course, it's a commercial product, so some nice features are locked behind paywalls. The full browser also requires more memory and more time to load.

    Another is cURL (alias curl), which is a command line tool, meaning you just enter the various parts of the question as text. It's a little less convenient for more complex questions to remember how to specify the question's parts and adjust them, because instead of a nice table where you enter them, you have to type it in text, but you can use various other features of the command line to make it easier for yourself. In some cases such tools may have advantages over the graphical ones, allowing you to do things the other can't do (or at least not easily).

    The whole page is a rant about people using the heavier and commercial graphical tool instead of the lighter and freely available command line tool. It's a tongue-in-cheek continuation of an old argument in some software developer circles, where you will have people who prefer to use certain graphical tools and others that not just prefer command line tools (or generally text-based code), but also feel like everyone should just use them instead. For some, that's just friendly banter. For others, it's a deeply ideological conviction.

    Personally, I'd suggest that people use whatever works for them and their team. For example, I have little choice but to use a mostly graphical tool because I work together with people who don't have the time to learn the text-based options. They might be a great tool for me, but if my work is unusable to others, that makes it harder to work together (and accordingly means that I'd be stuck doing everything myself, which I frankly don't have the time for).

    [–] Hadriscus@jlai.lu 3 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

    Dope, thanks for the ELI5, really appreciate it. I did look up curl and postman after the fact and was able to understand some of the context. What elude me are the specifics, relating to the commands in question. But I can't expect having any understanding of it without having studied networking, I suppose. That's fine. Cheers !!

    [–] luciferofastora@feddit.org 2 points 3 weeks ago (3 children)

    Technically, it's not so much networking (though parts of it are) as development of webservices and -applications.

    Most of the stuff you do with these tools happens in the application (the actual information of the question and answer) and some in the presentation (how the question and answer are phrased), where you don't generally worry about the actual transport of your question across the network.

    Basically, if you're asking someone for the time, "what's the time?" would be the application data, while the presentation would be "hour and minute in 24h format" (or some shorthand for that).

    The actual network part would be how you figure out who to ask, how you open the conversation ("Excuse me,") or how you transmit the question (speech, text message, written letter) in the first place, but if we're talking about asking for the time, we usually just take those communication basics for granted.

    If you would like me to, I could try to explain more about the various options and parts of these requests ("questions") in low-tech terms. I don't think you need extensive knowledge about networking or software development to grasp the basics, if you're interested (and I manage to translate it well enough).

    load more comments (3 replies)
    [–] azimir@lemmy.ml 6 points 3 weeks ago

    I feel bad that I read that page in Chrome. I'm a failure of a techie.

    Tomorrow I must atone by teaching more students terminal commands. Maybe using web API calls with cURL. Or get and some eviloverlord.com quotes?

    [–] synae@lemmy.dbzer0.com 82 points 3 weeks ago (2 children)

    whenever someone at work says they have trouble with a web service or api I'm like "Idk I can curl it just fine, what's your request look like" and you would not believe how many developers get confused by this question. It's so goddamn frustrating

    [–] funkajunk@lemmy.world 32 points 3 weeks ago (1 children)

    They know how to use Postman and that is it.

    [–] BCOVertigo@lemmy.world 45 points 3 weeks ago (1 children)

    Hey that's not fair, plenty of them also know how to upload hardcoded secrets to postman.

    [–] synae@lemmy.dbzer0.com 28 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

    Make sure to save all your secrets in git and then upload from git to postman, that way your security incident is way more repeatable

    [–] Egonallanon@feddit.uk 11 points 3 weeks ago (1 children)

    Security compromise as code.

    [–] luciferofastora@feddit.org 5 points 3 weeks ago

    UPTaaS: Unsolicited Penetration Tests as a Service

    [–] undefined@lemmy.hogru.ch 13 points 3 weeks ago (1 children)

    I get the same confusion when I prove someone wrong using a universal curl example. The same guy that parses JSON by hand (rather than use a library) can’t remember how to fucking use curl.

    [–] luciferofastora@feddit.org 8 points 3 weeks ago

    The same guy that parses JSON by hand (rather than use a library)

    Of course I know him. He's me.

    Or a past version of me anyway that was too dumb for its own good and also tried to do datetime stuff and several other complex things. Daft moron, that guy. Glad I don't have to work with such idiots any-

    Looks at coworkers

    Glad I can now look down on such-

    Looks at own work

    You know what, never mind.

    [–] ZkhqrD5o@lemmy.world 35 points 3 weeks ago (2 children)
    [–] Atherel@lemmy.dbzer0.com 22 points 3 weeks ago

    yeah we get it

    [–] Andrew15_5@mander.xyz 6 points 3 weeks ago

    Big W indeed.

    [–] pelya@lemmy.world 29 points 3 weeks ago

    Recursively dumping all data from the server was always a wget thing, it will create a nice directory structure for you and will also convert links in webpages to point to your local file system.

    [–] Landless2029@lemmy.world 21 points 3 weeks ago
    [–] janus2@lemmy.zip 13 points 3 weeks ago (1 children)

    a Tim Robinson Linux meme is two layers of obscure 10/10

    [–] marighost@piefed.social 6 points 3 weeks ago

    The few times I do use curl, all I can think of is this sketch. Glad there are some TR fans here too 😁

    [–] MonkderVierte@lemmy.zip 12 points 3 weeks ago (1 children)

    aria2c -c -x 10 -k 5M rocks. Faster and more persistent than Firefox' built-in downloader, while still working on most servers.

    [–] SystemL@literature.cafe 5 points 3 weeks ago (3 children)

    Alright someone explain this to me 🀣

    [–] luciferofastora@feddit.org 7 points 3 weeks ago* (last edited 3 weeks ago)

    Excerpted from the manual linked by the other response by @funkless_eck@sh.itjust.works for those who don't want to dig through it:

    aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth.

    Basically, a powerful and versatile file downloader. It includes options to distribute downloads across multiple connections, download a bunch of files at once, automatically retry failed downloads, authorization, cookies and a lot of fancy options.

    @MonkderVierte@lemmy.zip has already explained what the specific flags in this case do:

    I think (a while ago)

    • -c is with a temp file to pick up again on failure
    • -x 10: # of connections
    • -k 5M: block size or something

    Specifically -x is the maximum number of connections per server, relevant mostly if multiple downloads are queried at once. -k defines the minimum size per block downloaded. In this case, if the file is smaller than 10MiB, it won't be split because that would make the parts smaller than 5MiB. If it is larger, aria2c will split it into multiple connections, up to a default of 5 (unless a differenr value is specified by -s).

    [–] MonkderVierte@lemmy.zip 4 points 3 weeks ago

    I think (a while ago)

    • -c is with a temp file to pick up again on failure
    • -x 10: # of connections
    • -k 5M: block size or something
    [–] vin@lemmynsfw.com 11 points 3 weeks ago (1 children)

    I know curl but I don't get the meme?

    [–] funkless_eck@sh.itjust.works 10 points 3 weeks ago (1 children)

    the sketch is about reselling hair serum to bald men, he controls them because he threatens to withhold the serum unless he can dictate their haircuts.

    "You plant the seeds, you get to look at the trees!"

    [–] vin@lemmynsfw.com 2 points 3 weeks ago
    [–] Bakedtaint@lemmy.world 9 points 3 weeks ago

    Gimme that.

    [–] ivanafterall@lemmy.world 9 points 3 weeks ago

    Dear Lord,

    Please help OP's reference hit.

    In Jesus' name...

    [–] DontRedditMyLemmy@lemmy.world 6 points 3 weeks ago (2 children)

    itysl fan here: everyone else is talking about cURL, but I see what you did there.... well done!

    load more comments (2 replies)
    [–] mlg@lemmy.world 5 points 3 weeks ago

    Me watching curl and wget fail on a multi request HTTP logic stupidity that requires you to submit a random useless header that only the browser will do automatically.

    [–] toynbee@lemmy.world 2 points 3 weeks ago (6 children)

    That looks like Alan Tudyk in Chuck but I don't think it is.

    [–] joshg253@piefed.zip 10 points 3 weeks ago (2 children)

    I think it's this guy https://m.imdb.com/name/nm4200503 Just saw him in Friendship, which was incredibly awkward the whole time.

    [–] bored_boar_onboard@lemmy.world 5 points 3 weeks ago (2 children)

    That’s him, if you like him in that I would highly recommend his show β€œI Think You Should Leave”.

    [–] janus2@lemmy.zip 3 points 3 weeks ago

    and The Chair Company

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