I am running Ubuntu Server with the Xfce desktop environment install.
I have to type
startx to get to the GUI. How can I get back into the command line interface when I am in the GUI without rebooting.
You can change your
tty and there are several ways to do that, e.g:
sudo chvt 2
Will put you in
ps $(pgrep X) command to see in which
X session is running, and use another.
You can also kill the
X session which is not a good idea, or change the target to
Alternatively you might want to stop
sudo pkill -15 xfce4-session