• nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    9 months 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/
    
    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      9 months 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.

  • pixeltree@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    What do you have against desktop calculator? I used to do some code golfing with it even

    Poor dc, no one ever uses it on purpose it seems D=

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      9 months 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
        ·
        9 months 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
      0
      ·
      edit-2
      9 months 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.

      • HM King Charles III DG FD@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months 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
          ·
          9 months 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.

    • _thebrain_@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      9 months 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

    • Captain Aggravated@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      UGH that shit.

      rm deletes a file. It can’t delete a directory, you have to use

      rmdir to delete a directory…as long as there’s nothing in that directory. If there’s anything in the directory, you have to know to use

      rm -r to delete a directory and its contents, and no

      rmdir -r isn’t right somehow!

      • setsubyou@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        On Linux, rm can delete empty directories with -d too, not just with -r.

        rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.

        • Captain Aggravated@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          9 months ago

          Yeah it still has a certain “AAAAH! You didn’t say simon says” feel to it when you’re actually trying to get things done. Like imagine if you had to choose a different option from a context menu to delete a folder in a GUI. If there was an option for Remove File and another one placed a little elsewhere in the menu that says Remove Directory.

          I’m still gonna call it an unsanded corner.

          • Ephera@lemmy.ml
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months ago

            I feel like the main reason the distinction exists, is because deleting a whole directory can be potentially catastrophic.

            I looked at Trashy yesterday, which gives you a command trash my_file that just moves the file into the trashcan folder. Well, and that decided to make no distinction between files and directories, which does make sense to me, since you can just restore a deleted directory.

            • Captain Aggravated@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              9 months ago

              My solution: rm will remove an empty directory, while a full directory will throw either an “are you sure? y/N” or require you to use rm -r. Why have a command whose only job is to remove an empty directory?