I'm using sudo su
to start mysql
and do some homework with it.
When I finish with mysql
(or any other command), then I'm still in sudo
.
How do I "log out", so my prompt changes back from #
to $
?
Answer
You don't need to use sudo
and su
together--su
switches your user account (without arguments it switches you to root). sudo
just elevates your privileges to root for the current command.
It's reccomended to use sudo
instead of su
if possible, but to return to your normal account after calling su
, simply use the exit
command
No comments:
Post a Comment