How Do I Switch from Command Line to Gui in Linux?
Contents

press Alt + F7 (or repeatedly Alt + Right ) and you will get back to the GUI session.

How do I change from command line to GUI?

sudo systemctl enable lightdm (if you enable it, you’ll still have to boot in “graphical. target” mode to have GUI) sudo systemctl set-default graphical. target Then sudo reboot to restart your machine, and you should be back to your GUI.

How do I get GUI Back from command line in Linux?

1 Answer. 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.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest