I accidentally hit Ctl Alt F<num>. How do I return to the GUI? [duplicate]

I'm using 12.04, I accidentally used Ctl-Alt-F9 and got a black full screen with command line cursor (Terminal). How can I go back to the normal Unity screen?


Solution 1:

Press Ctl + Alt + F7, that is the default graphical tty.

Linux systems use to have 12 terminals: 6 for text (Ctl + Alt + F1 to F6) and 6 for graphical (Ctl + Alt + F7 to F12)

Solution 2:

Ctrl+Alt+F7 did not work for me, here are the alternatives:

  1. For those who have a Fn button, try Ctrl+Alt+Fn+F7
  2. if all fails, try the command: chvt 7