exit or a simple Ctrl+D.

How do I get out of su command?

exit or a simple Ctrl+D.

How do I stop sudo every time?

Two things you can do are: 1) Run sudo -s to stay root when you plan on entering multiple commands and don’t want to keep prefixing them with sudo. 2) You can configure your sudoers file to allow you to run sudo without having to enter your password.

How do I exit root mode in Linux?

Or you can simply press CTRL + D .