4 Jan
2024
4 Jan
'24
11:26 a.m.
Hi tippfehlr,
PS1='$ ' for commands run by the user, PS1='# ' for those run by root. sudo is run by the user so it should be '$ '.
... and to run a command as root, you need to use 'sudo' as a user.
sudo is one method.
# command
and
$ sudo command
are functionally the same.
Not necessarily, depending on how the root shell was obtained. But that's beside the point. Was there a point to your email which I'm missing? -- Cheers, Ralph.