Logout from Gnome with a command
It can be necessary sometimes to log out from Gnome and log back in. However, the logout button in the top right hand corner is not always visible, it’s happened to me several times that I couldn’t click on it. How to log out then? Is there a terminal command for this task?
Tip from here.