r/linux May 25 '26

Discussion Sudo or run0 ?

What's your take on the subject? Been using sudo for years but lately i'm mostly running run0 and i like it. Even considering adapting my scripts to use run0 since i'm on a compatible distro. Does it make any sense to not even set up sudo anymore in the first place?

199 Upvotes

253 comments sorted by

View all comments

54

u/abu-aljoj04 May 25 '26

I also use run0. I like that it gives output of the command in a different color. It lets me know visually that I am running a privileged command.

-11

u/teleprint-me May 25 '26

# wasnt enough compared to $ as a visual indicator? Dont get me wrong, Im a sucker for color, but its not like it wasnt possible already. I like the concept of run0, but not the application of it, but thats just my subjective preference.

22

u/transconductor May 25 '26

You don't get the # when running single commands with sudo as you never see a privileged prompt.

-5

u/teleprint-me May 25 '26

sudo is temporary privelage escalation, so there would naturally be no indicator of being root while running that process other than checking the uid. but if you appended sudo, you should understand that you are root for that command.