Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.

The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?

share|improve this question
    
Related (but not a duplicate): What does “Ctrl + Alt + F12” do? –  Eliah Kagan Jul 26 at 23:29

5 Answers 5

up vote 43 down vote accepted

Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs. Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X. So to get back into your GUI window manager: type:

Ctrl+Alt+F7

or

Alt+F7

or

Ctrl+Alt+F8

share|improve this answer

To revert to the GUI desktop you have to press:

Ctrl+Alt+F7

share|improve this answer
6  
Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn. –  Eliah Kagan Jun 29 '12 at 14:44
    
On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles. –  Hakim Benoudjit Sep 13 at 10:04

When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.

share|improve this answer

Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.

share|improve this answer

For completeness, I'll mention the chvt command The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:

chvt 7

will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers. This is useful for scripting (for example, when taking a screenshot of LightDM).

share|improve this answer

Your Answer

 
discard

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.