26

After I press ctrl + alt + f4 the virtual terminal appears but I can't exit anymore because it is always back to "input username" and "password". Any idea how to go back to my desktop?

Hizqeel
  • 1,915
  • 28
  • 24
  • 24
Kerth G.
  • 291
  • 1
  • 3
  • 10

4 Answers4

24

@Kerth G. if you press these buttons: Ctrl+Alt+(F1 to F6), you will get TTY, to exit from that you have two ways:

  1. Press Ctrl+Alt+F7, if you have function keys enabled press Ctrl+Alt+Fn+F7.
  2. Log into TTY with your user credentials, then in TTY type command: init 5, press Enter, now you will get Graphical User Interface.
7

To log out of a virtual console, you need to type exit.

Your Desktop Environment will be started in one of the virtual terminals. On Ubuntu, it is on tty7. So to get to it, press Ctrl + Alt + F7 (F2 since 17.10).

Pablo Bianchi
  • 17,371
daltonfury42
  • 5,559
5

Usually one virtual terminal (1 and 2, or 7) are reserved for the graphical environment, so to come out of a virtual terminal either try CTRL + ALT + F2 (F1 for login screen) or CTRL + ALT + F7.

Pablo Bianchi
  • 17,371
4

I tried all the other answers here, and none worked for me (Ubuntu VM)

To fix it, I logged in with my credentials and typed init 6 and chose to load the Ubuntu OS.

Zanna
  • 72,312