9

I'm using SuSE Linux Enterprise and I know that there is a command

su root

for changing to root log-in. But what about the other way around? If I prefer to return to my user account, how to do it?

3
  • 2
    You just exit the root shell...
    – Karlson
    May 12 '14 at 18:35
  • 4
    Run exit or hit Ctrl+D.
    – terdon
    May 12 '14 at 18:45
  • To become root, you can just use su, instead of su root
    – drs
    Aug 15 '14 at 1:36
18

If you want to return to your account, you have 3 ways:

exit
CTRL +D
logout

If you want to change to another user, you can use su again.

su differentuser
2
su username

If you want to load environment variables,

su - username
1

Just type exit to exit the shell.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.