How to exit the virtual terminal? [duplicate]
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?
@Kerth G. if you press these buttons: Ctrl+Alt+(F1 to F6), you will get TTY, to exit from that you have two ways:
- Press Ctrl+Alt+F7, if you have function keys enabled press Ctrl+Alt+Fn+F7.
- Log into TTY with your user credentials, then in TTY type command:
init 5
, press Enter, now you will get Graphical User Interface.
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.
Usually one virtual terminal (1 or 7) is reserved for the graphical environment, so to come out of a virtual terminal either try CTRL + ALT + F1 or CTRL + ALT + F7.
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.