Go to GNOME login screen from terminal
May 3, 2016

Sometimes, it is useful to go to the GNOME login screen from the terminal or a bash script. This can be accomplished with the following command:

gdmflexiserver

This will switch to the login screen and leave your session locked.