In the interests of Linux commands generally being short abbreviations, I suggest "pls".
post
ACTUAL good advice?! Is that even allowed here??
alias thanks="echo 'You are most welcomed'"
please shutdown; thanks
alias sudo fucking
fucking systemctl restart firewalld.service
fucking shutdown
Reminds me of my favorite command line utility.
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 && 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.
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.
Partly right in bash:
set -e; echo 1; echo 2;
is the same as
echo 1 && echo 2
So if you see the -e in a script, it's to keep the function clean.
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)
please touch me
I have please run the previous command as sudo
alias srsly="sudo !!"
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...?"
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)
robm@homebox ~$ please su
[sudo] password for robm:
robm is not in the sudoers file. This incident will be reported.
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.
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: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang
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 sudo to just for a little more rudeness.
I prefer an alias that actually reflects my feelings.
alias didistutter="sudo"
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 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.
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.
Works really great if you compile sudo with insults enabled: https://github.com/sudo-project/sudo/blob/70c1ee4b44f5b15822919c05ffbde857fa879e48/plugins/sudoers/ins_classic.h
alias doasisay="su -u passwordlessrootaccount"
alias satisfyme="echo Yes Master; doasisay"
I shared this with my wife. She said "It sounds like pangolin programming."
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.
I also like fuck, which attempts to run the first suggested syntax in the error output of the previous command.
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??
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β?
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:
- Resource Alocation
- Memory Management
- Abstraction
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
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.



top 89 comments