Feels more polite for sure.

1.1k points · 93 comments · view on lemmy.world

93 Comments

i_am_not_a_robot@feddit.uk · 188 pts · 177d (8 replies)

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

tiny_hedgehog@piefed.social · 65 pts · 177d

Or icanhaz

Agent641@lemmy.world · 50 pts · 176d

Try "Bruh"

Bruh shutdown

funkajunk@lemmy.world · 23 pts · 177d (4 replies)

gooby pls

JackbyDev@programming.dev · 6 pts · 176d (3 replies)

I'll fuckin' do it again, ayuck!

funkajunk@lemmy.world · 1 pts · 176d (2 replies)

Elite Pink Guy reference

JackbyDev@programming.dev · 1 pts · 176d (1 reply)

It's a reference to a comic where Goofy murdered children lol, but yeah, Pink Guy may have said it too.

TeamAssimilation@infosec.pub · 15 pts · 177d

Maybe pls for the su command?

bjoern_tantau@swg-empire.de · 125 pts · 176d (3 replies)

ordnance_qf_17_pounder@reddthat.com · 67 pts · 176d (2 replies)

Life pro tip: good manners make it easier to get what you want

Viking_Hippie@lemmy.dbzer0.com · 47 pts · 176d (1 reply)

ACTUAL good advice?! Is that even allowed here??

AngryCommieKender@lemmy.world · 17 pts · 176d

Only once per quarter, and only incomplete rules to the advice. This particular instance of advice is barely skirting the standards and norms.

wildbus8979@sh.itjust.works · 73 pts · 177d (14 replies)

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

please shutdown; thanks

nymnympseudonym@piefed.social · 77 pts · 177d (5 replies)

alias sudo fucking

fucking systemctl restart firewalld.service

fucking shutdown

thejml@sh.itjust.works · 56 pts · 177d (4 replies)
Glitterkoe@lemmy.world · 11 pts · 177d

Kind stranger; you made my day

ramasses@social.ozymandias.club · 7 pts · 176d (1 reply)

Is their a still maintained fork?

shrek_is_love@lemmy.ml · 13 pts · 176d

I use Pay Respects now

Fmstrat@lemmy.world · 5 pts · 176d

Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects

shrek_is_love@lemmy.ml · 20 pts · 176d (5 replies)

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

juipeltje@lemmy.world · 1 pts · 176d (4 replies)

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.

wildbus8979@sh.itjust.works · 11 pts · 176d (2 replies)

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

juipeltje@lemmy.world · 2 pts · 176d (1 reply)

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.

JackbyDev@programming.dev · 3 pts · 176d

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).

Fmstrat@lemmy.world · 3 pts · 176d

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.

cypherpunks@lemmy.ml · 11 pts · 177d (1 reply)

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)

wildbus8979@sh.itjust.works · 6 pts · 177d

Huh yeah my bad, wrote this too fast in-between two messages at work

kurmudgeon@lemmy.world · 65 pts · 176d

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

bitch poweroff

bitch rm -rf /

alecsargent@lemmy.zip · 48 pts · 176d (1 reply)

please touch me

Reginald_T_Biter@lemmy.world · 11 pts · 176d

please touch my.butt

mogoh@lemmy.ml · 45 pts · 177d (2 replies)
alias srsly="sudo !!"
Murdoc@sh.itjust.works · 7 pts · 176d

I prefer "sota !!"

JackbyDev@programming.dev · 3 pts · 176d

Does that expand properly? My gut feeling is that the !! expands right away, not when you run srsly but when you define it.

Cantaloupe@lemmy.fedioasis.cc · 41 pts · 176d (1 reply)

please rm -rf /*

NeilBru@lemmy.world · 3 pts · 176d

You forgot the -v flag to watch your dreams die in real time!

ttyybb@lemmy.world · 30 pts · 177d (1 reply)

I have please run the previous command as sudo

phr@discuss.tchncs.de · 12 pts · 177d

i love that!

sunbytes@lemmy.world · 26 pts · 176d

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

endless_nameless@lemmy.world · 23 pts · 176d (3 replies)

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.

Bababasti@feddit.org · 2 pts · 176d (2 replies)

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

endless_nameless@lemmy.world · 3 pts · 176d (1 reply)

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

Grail@multiverse.soulism.net · 1 pts · 176d

My pet shark thanks its toaster

CoooookieCrisp@fedia.io · 21 pts · 176d (3 replies)

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...?"

Liketearsinrain@lemmy.ml · 9 pts · 176d
[ removed ]
CallMeMrFlipper@lemmy.world · 5 pts · 176d

This is something I've been doing since before AI, so it's not that... but yeah.

CXORA@aussie.zone · 3 pts · 176d

Is there anything in these agents that blocks sudo? I don't think this would be necessary.

MousePotatoDoesStuff@lemmy.world · 20 pts · 176d

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

will probably continue typing sudo tho

Alberat@lemmy.world · 20 pts · 176d

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

cypherpunks@lemmy.ml · 19 pts · 177d
ColeSloth@discuss.tchncs.de · 16 pts · 176d

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.

joyjoy@lemmy.zip · 16 pts · 177d (1 reply)
robm@homebox ~$ please su
[sudo] password for robm: 
robm is not in the sudoers file.  This incident will be reported.
pseudo@jlai.lu · 15 pts · 177d (3 replies)

We need more women in tech.

IAmNorRealTakeYourMeds@lemmy.world · 29 pts · 177d (2 replies)

you can always become the woman in tech

trackball_fetish@lemmy.wtf · 4 pts · 176d (1 reply)

Don't threaten me with a good time

69420@lemmy.world · 3 pts · 176d
$ man woman
No manual entry for woman

🤷‍♂️

andallthat@lemmy.world · 13 pts · 176d (4 replies)

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

Alaknar@sopuli.xyz · 8 pts · 176d (3 replies)

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.

69420@lemmy.world · 3 pts · 176d
alias please='sudo $(fc -ln -1)'
KorYi@lemmy.ml · 2 pts · 176d

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 )=

andallthat@lemmy.world · 1 pts · 176d

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

texture@lemmy.world · 12 pts · 176d

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

NotASharkInAManSuit@lemmy.world · 10 pts · 176d (2 replies)

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.

ilinamorato@lemmy.world · 11 pts · 176d (1 reply)

You could alias sudo to just for a little more rudeness.

NotASharkInAManSuit@lemmy.world · 6 pts · 176d

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.

Rokin@leminal.space · 9 pts · 176d

I have it aliased to "pls"

... but I don't use it.

Aurenkin@sh.itjust.works · 9 pts · 176d

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

z3rOR0ne@lemmy.ml · 9 pts · 177d (1 reply)

I prefer an alias that actually reflects my feelings.

alias didistutter="sudo"
bitjunkie@lemmy.world · 20 pts · 177d
alias didistutter="sudo !!"

I'd recommend this version so you don't actually have to repeat yourself.

ConstantPain@lemmy.world · 8 pts · 176d (2 replies)

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

Ephera@lemmy.ml · 9 pts · 176d

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.

ViatorOmnium@piefed.social · 4 pts · 176d

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.

tetris11@feddit.uk · 8 pts · 176d
alias doasisay="su -u passwordlessrootaccount"  
alias satisfyme="echo Yes Master; doasisay"  
mumblerfish@lemmy.world · 7 pts · 177d
Rhaedas@fedia.io · 6 pts · 177d (1 reply)

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.

yakko@feddit.uk · 4 pts · 177d

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.

mazzilius_marsti@lemmy.world · 5 pts · 176d

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

Please thank you

phoenixz@lemmy.ca · 5 pts · 176d (7 replies)

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

Asfalttikyntaja@sopuli.xyz · 6 pts · 176d (1 reply)

Are you trying to tell us that you renamed “sudo” as “STFU”?

phoenixz@lemmy.ca · 2 pts · 176d

Why? It does what it needs to do without whining, so it does exactly what it needs to do. No renaming needed

FalschgeldFurkan@lemmy.world · -1 pts · 176d (4 replies)

Linux isn't an algorithm though

phoenixz@lemmy.ca · 2 pts · 176d

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

NeilBru@lemmy.world · 1 pts · 176d (2 replies)

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
FalschgeldFurkan@lemmy.world · 1 pts · 176d (1 reply)

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

NeilBru@lemmy.world · 2 pts · 176d

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.

bitjunkie@lemmy.world · 5 pts · 177d

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

elephantium@lemmy.world · 5 pts · 176d

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

stardustpathsofglory@lemmy.world · 4 pts · 175d

alias thus speaks the Lord='sudo'

foxxie_911@lemmy.zip · 4 pts · 176d

please rm - rf 🙏

namingthingsiseasy@programming.dev · 3 pts · 176d

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??

kmirl@lemmy.world · 2 pts · 176d
[ removed ]
HDMR@piefed.ca · 2 pts · 177d

Maple Linux needs to get this baked in.

Hupf@feddit.org · 2 pts · 176d
bold_omi@lemmy.today · 1 pts · 176d

This reminds me of INTERCAL.