How to come out of root user?

From what I gather you're simply trying to return to your user account after gaining access to root.

Try typing

exit

in terminal. Or you can simply press CTRL+D.


Just type exit and you will leave the root shell and get a shell of your previous user.