How to log out in gnome? [closed]

If you want to do it through the GUI, you click the button at the far right of the top bar, click power off/logout, and select logout

example:

If you want to do it through terminal you can type gnome-sessiong-quit (This is for if you want to logout through terminal, but still using the GUI)

If you are not in the GUI at all (like in ssh or Terminal view) you just type exit.

The first two options will make a message appear stating you will be logged out in 60s, allowing you to select if you want to logout now, cancel or wait.

enter image description here