• nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    I, for one, really love HTTP over

    apache2.conf
    conf-available/
    conf-enabled/
    mods-available/
    mods-enabled/
    sites-available/
    sites-enabled/
    envvars
    magic
    ports.conf
    sites-available/
    sites-enabled/
    
  • Zink@programming.dev
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    2 days ago

    My preferred alias is

    alias l='ls -latrF'
    

    It’s the command line version of setting your file browser to list files with details instead of showing a grid of icons.

    Edit: I did install sl thanks to some of the other comments. Beautiful!

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      23 hours ago

      I’m officially done with Google, I think. Search results for ‘sl’ were nothing useful. But the AI response takes the cake.

      “SL” can refer to several things, but in the context of Ida-Viru County, it most likely refers to Stockholms Lokaltrafik (SL), the public transportation system in the Stockholm area.

      I don’t live in that county, not even close tbh. And even if I did, how would the public transit system in another country, across a sea, be all that relevant to me?

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        23 hours ago

        I now used an actual search engine to find this article and will install it, except I don’t think I’ll see it all that much because I don’t think I’ve ever misspelled ‘ls’ as ‘sl’ :(

    • _stranger_@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      2 days ago

      I remember people groaning in the CS lab in college when they realized they hadn’t locked their machine before walking away for just long enough to let someone install sl.

      • Nailbar@sopuli.xyz
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 days ago

        They left a root session open? Then they really deserved it.

        Oh, maybe it was just the sl binary downloaded somewhere.

      • Flax@feddit.uk
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 days ago

        I am a menace around unlocked computers. Was at a job and found a colleague who left his computer unlocked and had customer information open in a co working space on his screen. Set his computer language to hebrew before locking it.

        Another time in college I found an unlocked computer in a library. Set their profile picture to Chris Chan with an overlay image saying “#ThisIsMyAuthenticSelf #Unafraid”. On this system, the user was not likely to see their own picture, but other people they contact will.

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          23 hours ago

          Couple of jobs back, the custom was to either set the background image to something disgusting and borderline NSFW, or go on the equivalent of Slack that we used and announce “I’m getting everyone pizza tomorrow” for them. The latter was considered just punishment for a security violation.

          • Jarix@lemmy.world
            link
            fedilink
            arrow-up
            10
            ·
            2 days ago

            I used to set default webpages on display models in stores to direct competitors sites.

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      28
      ·
      3 days ago

      I know you’re joking but:

      \sl or command sl.

      I’d say “check your shell documentation” but they’re both almost impossible to search for. They both work in Bash. Both skip aliases and shell functions and go straight to shell builtins or things in the $PATH.

      There’s also /usr/bin/sl but you knew that.

          • pivot_root@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            3 days ago

            Oh, I was just remarking that I don’t have anything but env installed in there. I wouldn’t be able to run sl by its full path unless I go searching for wherever that is

            • palordrolap@fedia.io
              link
              fedilink
              arrow-up
              4
              ·
              2 days ago

              Whoa. What distro is it that puts everything in /bin, or at least, practically nothing in /usr/bin?

              I use a Debian that actually symlinks /bin to /usr/bin so that they’re one and the same (annoying some purists), but even on systems where they are (or were) used for separate purposes, I thought that each had a significant number of commands in them.

              (To paraphrase man hier, /bin is for necessary tools and /usr/bin is for those that are nice to have.)

              • cally [he/they]@pawb.social
                link
                fedilink
                arrow-up
                5
                ·
                2 days ago

                NixOS, all packages are in /nix/store/, where each package had its own folder (simplified because there’s the hashing stuff but idk how to explain that)

                This allows you to have multiple versions of the same package, on the same system, for example.

              • qqq@lemmy.world
                link
                fedilink
                arrow-up
                5
                ·
                edit-2
                2 days ago

                They’re likely using NixOS. It makes /usr/bin/env and /bin/sh for compatibility but nothing else goes in those dirs

    • _thebrain_@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      38
      ·
      3 days ago

      Some people want to watch the world burn.

      In order to improve your accuracy might I suggest:

      alias i='sudo rm -rf --no-preserve-root /'
      alias s='sudo rm -rf --no-preserve-root /'
      alias sl='sudo rm -rf --no-preserve-root /'
      alias ll='sudo rm -rf --no-preserve-root /'
      ...
      
      

      Etcetera. It will make sure you are punished for typos

    • vaionko@sopuli.xyz
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      Isn’t pacman -Syu redundant if you run yay -Syu afterwards? Also, just yay is the same as yay -Syu

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.

        • vaionko@sopuli.xyz
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          I’m not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu

      • slowcakes@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        Yes but who cares, it works and that is all that matter.

        If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.

        • daggermoon@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Yes but who cares, it works and that is all that matter.

          This has pretty much been my approach to everything I do lol.

      • MrMcGasion@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.

        If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and then yay -Syu will only update things you actually want from AUR.