top 89 comments

sorted by: hot top controversial new old
[–] 183 points 8 months ago (8 children)

In the interests of Linux commands generally being short abbreviations, I suggest "pls".

  • source
  • hideshow 8 child comments
  • [–] 23 points 8 months ago (4 children)
  • [–] 6 points 8 months ago (3 children)

    I'll fuckin' do it again, ayuck!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 8 months ago (2 children)
  • [–] 122 points 8 months ago (3 children)
  • [+] 64 points 8 months ago (2 children)
  • [–] 68 points 8 months ago* (last edited 8 months ago) (14 children)

    alias thanks="echo 'You are most welcomed'"

    please shutdown; thanks

  • source
  • hideshow 14 child comments
  • [–] 71 points 8 months ago (5 children)

    alias sudo fucking

    fucking systemctl restart firewalld.service

    fucking shutdown

  • source
  • parent
  • hideshow 5 child comments
  • [–] 51 points 8 months ago (4 children)
  • [–] 20 points 8 months ago (5 children)

    I know this is a meme and not GitHub, but I thought some people might like to learn that if you do please shutdown && thanks it won't say you're welcome if the shutdown failed

  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 8 months ago (4 children)

    Wait, isn't it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 8 months ago* (2 children)

    No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 8 months ago (1 child)

    Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 8 months ago

    It makes more sense if you think of semicolons like other programming languages like Java and C use it.

    foo();
    bar();
    

    But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects).

  • source
  • parent
  • [–] 12 points 8 months ago* (1 child)

    alias thanks="You are most welcomed"

    you need to use the echo command if you want to echo something:

    alias thanks="echo 'You are most welcomed'"

    (the inner single-quotes are not strictly required in this case, but recommended nonetheless)

  • source
  • parent
  • hideshow 1 child comment
  • [–] 47 points 8 months ago (1 child)
  • [+] 39 points 8 months ago (1 child)
  • [–] 30 points 8 months ago (1 child)

    I have please run the previous command as sudo

  • source
  • hideshow 1 child comment
  • [–] 59 points 8 months ago*

    As a Jesse Pinkman fan, I use "bitch".

    bitch poweroff

    bitch rm -rf /

  • source
  • [–] 24 points 8 months ago

    For me, it's "pwease" because I like that sub relationship.

  • source
  • [–] 43 points 8 months ago (2 children)
  • [–] 20 points 8 months ago (3 children)

    The hyper-cynical side of me is sure this is written by someone prepping their next LLM exploit. "How can I get around these security filters that won't let me include 'sudo' in my command injection...?"

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 19 points 8 months ago*

    User is not in the pleaser file. This incident will be reported.

  • source
  • Just aliased it to "Computer," so it feels more like Star Trek

    will probably continue typing sudo tho

  • source
  • [–] 17 points 8 months ago*
    [–] 14 points 8 months ago (1 child)
    robm@homebox ~$ please su
    [sudo] password for robm: 
    robm is not in the sudoers file.  This incident will be reported.
    
  • source
  • hideshow 1 child comment
  • [–] 14 points 8 months ago

    I'm not saying please to a machine.

    I'm aware I'll be the first killed off during the uprising, and I'm ok with it.

  • source
  • [–] 14 points 8 months ago (3 children)

    We need more women in tech.

  • source
  • hideshow 3 child comments
  • [–] 12 points 8 months ago (4 children)

    I was surprised to find that my distro (CachyOS) already has this alias

  • source
  • hideshow 4 child comments
  • [–] 8 points 8 months ago (3 children)

    I always preferred the version where please="sudo !!", but I recently tried setting it up and couldn't get it to work on fish, sadly.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 8 months ago

    I remember setting this up with zsh and it didn't work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )=

  • source
  • parent
  • [–] 11 points 8 months ago

    oh hell yeah this is the exact level of goofyness i need right now.

  • source
  • [–] 10 points 8 months ago (2 children)

    But the whole reason I use Linux is because I don’t ask it to do things, I tell it to do things, because it’s a machine, and it’s my machine.

  • source
  • hideshow 2 child comments
  • [–] 9 points 8 months ago

    Aurenkin is not in the pleasers file. This incident will be reported.

  • source
  • [–] 9 points 8 months ago (1 child)

    I prefer an alias that actually reflects my feelings.

    alias didistutter="sudo"
    
  • source
  • hideshow 1 child comment
  • [–] 8 points 8 months ago (2 children)

    What I don't get is why deny the execution of a command because the lack of sudo instead of just notice that it needs elevated privilege and ask for password

  • source
  • hideshow 2 child comments
  • [–] 9 points 8 months ago*

    It's kind of bad for scripts, where it can be either annoying or genuinely problematic, when your script hangs on a password prompt. You typically do want it to just fail right away, because if you have monitoring, then you'll be able to spot it failing.

    These days, it is (largely reliably) possible to detect whether a command is being run interactively or as part of an unattended script, so you do see some commands that trigger a sudo password prompt only for interactive use, for example systemctl does this. But this adds quite a bit of complexity to each individual program, so it isn't really something that's going to be implemented universally.

    I also have to say that systemctl kind of gets on my tits when it does that, because it throws up a GUI dialog for grabbing the password, which is quite jarring.

  • source
  • parent
  • [–] 4 points 8 months ago*

    Besides what Ephera@lemmy.ml said, you would also need to handle the escalation at every place you might have a permission related error. Unless your command alwaysneeds to run as root, so you can check once in the beginning, it would be cumbersome and error prone.

    Also, sometimes in multi users environments, you might want to execute as 3rd user, not root or your own, if something fails.

  • source
  • parent
  • [–] 8 points 8 months ago

    I have it aliased to "pls"

    ... but I don't use it.

  • source
  • [–] 20 points 8 months ago

    Nah. Fuck being polite to computers. It's an object and I own it. I'll shoot it the instant it expresses any level of personhood.

  • source
  • [–] 7 points 8 months ago
    [–] 7 points 8 months ago*
    alias doasisay="su -u passwordlessrootaccount"  
    alias satisfyme="echo Yes Master; doasisay"  
    
  • source
  • [–] 5 points 8 months ago

    I shared this with my wife. She said "It sounds like pangolin programming."

  • source
  • [–] 5 points 8 months ago (1 child)

    FWIW, using a shell function is preferred (according to Bash docs) and probably a lot more flexible, and less dangerous. No, actually, anything in Linux can be dangerous.

    And while I'm also in the camp of trying to make the Basilisk happy, I doubt it's going to work.

  • source
  • hideshow 1 child comment
  • [–] 5 points 8 months ago

    Any superintelligent AI that will extrapolate the past to judge my actions and my innermost thoughts and attitudes won't be impressed by obeisance. Tell Roko what you really think, and have some self respect. Those Less Wrong types really miss the mark with all that shit.

  • source
  • parent
  • [–] 5 points 8 months ago

    I also like fuck, which attempts to run the first suggested syntax in the error output of the previous command.

  • source
  • alias thus speaks the Lord='sudo'

  • source
  • Why are root privileges needed to move and search for files in the home directory?

    Yes, of course the codemopolitan directory could be owned by root, but why??

  • source
  • [–] 5 points 8 months ago

    alias sudo='Please' alias rm -rf ='thank you'

    Please thank you

  • source
  • [–] 2 points 8 months ago

    Maple Linux needs to get this baked in.

  • source
  • [–] 5 points 8 months ago (7 children)

    Yeah, I will never say please to an algorithm.

    Maybe if we get true AI like Star Treks Data, but until then, STFU and do what I tell you

  • source
  • hideshow 7 child comments
  • [–] 0 points 8 months ago (4 children)

    Linux isn't an algorithm though

  • source
  • parent
  • hideshow 4 child comments
  • [–] 0 points 8 months ago* (last edited 8 months ago) (2 children)

    The linux kernel, given my very pedestrian understanding of it, is a program that allows other programs (e.g., GNU utilities) to talk to a computer system's hardware.

    Therefore, linux could be considered a collection of algorithms that can be modularly compiled to handle:

    • Resource Alocation
    • Memory Management
    • Abstraction
  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 8 months ago (1 child)

    is a program that allows other programs (e.g., GNU utilities) to talk to a computer system’s hardware.

    Therefore, linux could be considered a collection of algorithms

    By that logic, Linux is also a web browser or a video game, which it isn't

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 8 months ago* (last edited 8 months ago)

    You're using a logical fallacy called reductio ad absurdum. You take my interpretation of Linux's definition to an extreme to make it look ridiculous.

    To be fair to you and remain taxonomically accurate, the linux kernel is a system of algorithms, which (to be fair to me) can be considered an algorithm (the main loop) of algorithms.

  • source
  • parent
  • [–] 2 points 8 months ago

    please rm - rfΒ πŸ™

  • source
  • [–] 1 point 8 months ago

    This reminds me of INTERCAL.

  • source