Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just jumped into a command line virtual console using Ctrl-Alt-F1, and i would now like to return to the gui. startx gives me something along the lines of 'this server is already active for display 0' if ...etc. it gives me a command to remove /tmp/.X0lock if that isn't the case...I could just restart the machine, but i'm worried i might mess something up.

share|improve this question
possible duplicate of Reverting from Ctrl - Alt - F1 – Eliah Kagan Apr 12 '15 at 4:01
up vote 23 down vote accepted

If you switched TTYs with Ctrl+Alt+F1 you can go back to the one running your X with Ctrl+Alt+F7.

TTY 7 is where Ubuntu keeps the graphical interface running.

Its not scary at all, you can use TTYs to do troubleshooting and other necessary configuration, get a bit familiar with it, login, check it out (it works as the terminal inside graphical Ubuntu) and logoff. You can login to several TTYs without messing your system.

When you want to go back to graphical press Ctrl+Alt+F7.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.