To exit the root user session and return to your normal user account, you can use one of the following methods:
-
If you used
su:- Simply type:
exit - This will log you out of the root session and return you to your previous user.
- Simply type:
-
If you used
sudo -iorsudo su:- Similarly, type:
exit - This will also return you to your normal user account.
- Similarly, type:
-
If you are in a root shell:
- You can press
Ctrl + Dto log out of the root shell.
- You can press
Using any of these methods will safely exit the root user session. If you have more questions, feel free to ask!
