• 0 Posts
  • 19 Comments
Joined 9 months ago
cake
Cake day: December 30th, 2023

help-circle

  • The POSIX standard is more portable. If you are writing scripts for your system, you can use the full features in the main man pages. If you are writing code that you want to run on other Linux systems, maybe with reduced feature sets like a tiny embedded computer or alternates to gnu tools like alpine linux, or even other unixes like the BSDs, you will have a better time if you limit yourself to POSIX-compatible features and options – any POSIX-compatible Unix-like implementation should be able to run POSIX-compliant code.

    This is also why many shell scripts will call #!/bin/sh instead of #!/bin/bash – sh is more likely to be available on tinier systems than bash.

    If you are just writing scripts and commands for your own purposes, or you know they will only be used on full-feature distributions, it’s often simpler and more comfortable to use all of the advanced features available on your system.










  • Is Arch the most popular Linux distro at 0.15% of 1.95%? What’s missing here? Steam OS?

    A couple of things – yes, SteamOS is by far the most popular Linux distro and it was left off this part of the list, and also Arch is the most popular because it’s a rolling release distro, so we’re all running “Arch Linux” no matter how far behind we are on patching our system. Ubuntu would probably come out on top if you bundled every other version besides 22.04.3 LTS together into one line item.

    Here’s a screenshot of the Linux breakdown with a few more entries (though most are still bucketed under Other). SteamOS alkone is almost half of Linux deployments.


  • Why are Arch and Manjaro in quotes, but Ubuntu LTS and Linux Mint aren’t?

    They’re probably putting the rolling releases in quotation marks – I’m guessing they’re pulling the Description field from “lsb_release -a”, where “Arch Linux” says just that, while each Ubuntu/Debian/Mint/etc distro will show specific version numbers (and that would explain why Arch shows up as a higher share than Ubuntu 22.04.3 LTS) – I’m sure there are several more Ubuntu entries in their list that would total more than Arch’s percentage. I’m not sure why they arbitrarily truncated the Linux list at 4 while showing 5 Windows/Mac releases, though.

    EDIT: Found another screenshot where they list “SteamOS Holo” in quotes, too. So I guess they just include quotes for every distro that doesn’t show a version number in that field.


  • To reference a movie in common vocabulary is to bring it up in conversation.

    Referencing in programming terms like C refers to assigning a value to a variable. You can re-assign those variables to new values and then de-reference (read) the new value.

    They are conflating the common meaning of reference with the much more obscure programming definition (obscure at least among non-programmers).

    Star wars = “no, I am your father” (reference) Jaws = movie about hunting killer shark (reference) Star wars = movie about hunting killer shark (OP is pretending we can treat movie references like variable references and re-assigns the star wars variable to mean something else) “Hey, have you seen star wars? The movie about hunting a killer shark?” (De-referencing your newly re-assigned variable)






  • Yes, my comment only applies to the shell history in memory. -c clears history immediately, but you can still reload it from disk if you haven’t overwritten that with -w. If you tend to close your terminal windows frequently and rely on the history feature between sessions, it would benefit you to learn about the intricacies of the on-disk copy of history and how its affected by writes, appends, clears, crashes, etc. I tend to leave my terminal windows open a long time and copy any complex commands out to my PKM if I need to save them for future sessions, so I generally try not to rely on .bash_history, but it has saved my bacon on more than one occasion.