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
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.
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.
I don't say please and thank you to any inanimate objects whatsoever and if I were to begin doing so (which I will never do) computers would be the very last to receive that treatment from me. Personifying computers is not practice for how to treat people. Fuck clankers
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...?"
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 )=
I'm a new windows emigrant, so I don't have that muscle memory.... so I am getting used more easily to using fish's ALT+S to sudo the previous command.
I’m also not trying to be rude to my machine, that’s erroneous, I’m not going to treat a computer like it thinks or has emotions, one way or the other.
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
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.
Besides what [email protected] 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.
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.
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.
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:
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.
In the interests of Linux commands generally being short abbreviations, I suggest "pls".
Or icanhaz
Try "Bruh"
Bruh shutdown
gooby pls
I'll fuckin' do it again, ayuck!
Elite Pink Guy reference
It's a reference to a comic where Goofy murdered children lol, but yeah, Pink Guy may have said it too.
https://www.youtube.com/watch?v=umvgwXINJBE
Maybe pls for the su command?
Life pro tip: good manners make it easier to get what you want
ACTUAL good advice?! Is that even allowed here??
Only once per quarter, and only incomplete rules to the advice. This particular instance of advice is barely skirting the standards and norms.
alias thanks="echo 'You are most welcomed'"please shutdown; thanksalias sudo fucking
fucking systemctl restart firewalld.service
fucking shutdown
Reminds me of my favorite command line utility.
Kind stranger; you made my day
Is their a still maintained fork?
I use Pay Respects now
Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects
I know this is a meme and not GitHub, but I thought some people might like to learn that if you do
please shutdown && thanksit won't say you're welcome if the shutdown failedWait, 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.
No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command.
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.
It makes more sense if you think of semicolons like other programming languages like Java and C use it.
But those languages allow
foo(); bar();as well. Then&&works like a normal short circuited expression (with side effects).Partly right in bash:
is the same as
So if you see the
-ein a script, it's to keep the function clean.you need to use the
echocommand 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)
Huh yeah my bad, wrote this too fast in-between two messages at work
As a Jesse Pinkman fan, I use "bitch".
bitch poweroffbitch rm -rf /please touch meplease touch my.butt
I prefer
"sota !!"Does that expand properly? My gut feeling is that the
!!expands right away, not when you runsrslybut when you define it.please rm -rf /*You forgot the
-vflag to watch your dreams die in real time!I have please run the previous command as sudo
i love that!
For me, it's "pwease" because I like that sub relationship.
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.
True, but it can be a good training to be a nice person in general, no? Wouldn’t hurt to include a "please" and the likes once in a while
I don't say please and thank you to any inanimate objects whatsoever and if I were to begin doing so (which I will never do) computers would be the very last to receive that treatment from me. Personifying computers is not practice for how to treat people. Fuck clankers
My pet shark thanks its toaster
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...?"
This is something I've been doing since before AI, so it's not that... but yeah.
Is there anything in these agents that blocks sudo? I don't think this would be necessary.
User is not in the pleaser file. This incident will be reported.
Just aliased it to "Computer," so it feels more like Star Trek
will probably continue typing sudo tho
https://gitlab.com/edneville/please (a sudo alternative)
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.
We need more women in tech.
you can always become the woman in tech
Don't threaten me with a good time
🤷♂️
I was surprised to find that my distro (CachyOS) already has this alias
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.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 )=
I'm a new windows emigrant, so I don't have that muscle memory.... so I am getting used more easily to using fish's ALT+S to sudo the previous command.
EDIT: @[email protected] I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang
oh hell yeah this is the exact level of goofyness i need right now.
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.
You could alias
sudotojustfor a little more rudeness.I’m also not trying to be rude to my machine, that’s erroneous, I’m not going to treat a computer like it thinks or has emotions, one way or the other.
Aurenkin is not in the pleasers file. This incident will be reported.
I prefer an alias that actually reflects my feelings.
I'd recommend this version so you don't actually have to repeat yourself.
I have it aliased to "pls"
... but I don't use it.
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
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
systemctldoes 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
systemctlkind of gets on my tits when it does that, because it throws up a GUI dialog for grabbing the password, which is quite jarring.Besides what [email protected] 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.
Works really great if you compile sudo with insults enabled: https://github.com/sudo-project/sudo/blob/70c1ee4b44f5b15822919c05ffbde857fa879e48/plugins/sudoers/ins_classic.h
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.
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.
alias sudo='Please' alias rm -rf ='thank you'
Please thank you
I shared this with my wife. She said "It sounds like pangolin programming."
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
Are you trying to tell us that you renamed “sudo” as “STFU”?
Why? It does what it needs to do without whining, so it does exactly what it needs to do. No renaming needed
Linux isn't an algorithm though
And I've never asked it to do anything, I always tell it to do what it needs to do and it does it exactly as asked
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:
By that logic, Linux is also a web browser or a video game, which it isn't
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.
I also like
fuck, which attempts to run the first suggested syntax in the error output of the previous command.please rm - rf🙏alias thus speaks the Lord='sudo'Why are root privileges needed to move and search for files in the home directory?
Yes, of course the
codemopolitandirectory could be owned by root, but why??http://www.catb.org/~esr/intercal/ick.htm#Statement-Identifiers
Maple Linux needs to get this baked in.
This reminds me of INTERCAL.