This article will guide you on methods to logout from the Linux #Mint. Based on your convenience, you can use either the keyboard shortcut or the system menu to logout from your session. When you use a terminal or if you log in to an #Ubuntu system via #SSH, you open a shell session. If you want to logout from your session, you simply exit the #shell. This is why the exit command is equivalent to log out command in Linux.
To switch users in #Linux:
The su command lets you switch the current user to any other user.
If you need to run a command as a different (non-root) user, use the –l [username] option to specify the user account.
Additionally, su can also be used to change to a different shell interpreter on a go.
https://linuxapt.com/blog/81-how-to-logout-of-linux-mint-20