Removed by mod
There’s always a relevant one.
It used to send it to root’s local mailbox but I haven’t looked since the 90s.
Santa, as a bad kid.
Serious question, what exactly does
do
do? In my terminal I can see that do is a command but all I get isbash: syntax error near unexpected token
do’and obviously with such a common name it's hard to find information on google about what
do` actually does.It’s used in loops in bash, like:
for i in 1 2 3 do echo "$i" done
or
while true do echo "o/" done
But then why is it available in my command line terminal as a command that I can use? Like when I type
do
and then hitTAB
twice to list commands that match the output isdo done dofsck etc...
but when I just enterdo
in the command line ordo --help
I getbash: syntax error near unexpected token 'do'
I would assume that since I can run
sudo apt update
that I could also rundo apt update
where it would run it not as a super user. I know justapt update
would do that too, but I’m just so curious if it’s possible to usedo
as a user-levelsudo
or what else it might be able to do.No do is not the “none superuser” version of sudo.
As the comment above stated it’s part of loops. But since loop syntax are built in to bash they are actually seperate built-in commands. Because it’s an available builtin autocompletion offers it to you.
The do command here is just a special command that expects a certain set of parameters and a done at the end this is why you get an error trying to run do alone because it’s not adhering to the syntax properly.
i use
doas
and it has a-u user
argument. by default the user is root but you could dodoas -u another_user
i guess. i don’t know if sudo has the same but it probably doas*.*i misspelled “does” but i’m keeping it
doas root sudo open eyes
Adhd brain: you have no power here!
You’re not root, bruh.
Fuck you brain! :)
Here is an alternative Piped link(s):
Sidewalks and Skeletons - Sleep Paralysis
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I’m open-source; check me out at GitHub.