Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am searching for a command for the terminal that will close the GUI and open the CLI.
I am aware of the key shortcut to get there but am trying to create a shortcut that will run a program from CLI
To end the GUI but remain logged in
To end the GUI and logout (kills all user process, NEVER run this as root!)
kill -9 -1
Required, but never shown