What is the command to return to the graphical desktop after entering the terminal mode with Ctrl+Alt+F1? I need it for operating my Raspbian.
On some systems it is Alt+F8 or Alt+F9, on others it is Alt+F7. The Ctrl is not needed to come back from the
tty, only to drop to it.
F key depends on which tty your X session is running in. As far as I know, the default value is 8 (or 7) so Alt+F8 should do it. If not, just try the other values until you hit the right one.
As @mantawork points out in the comments, a generic way is Alt+Left Arrow while in terminal 1. In general Alt+Left Arrow or Alt+Right Arrow will cycle through the ttys. If you repeat that you will eventually be taken back to the one that has your X session.
I had the same question/problem.
Alt-LeftArrow and Alt-RightArrow didn't do anything for me. They just printed ^[[C and ^[[D on the screen.
Mine ended up being Ctrl-Alt-F3. It varied depending on number of ttys that were configured in /etc/ttys. I had 2 uncommented ttys, so it was Ctrl-Alt-F3. When I uncommented another tty, it became Ctrl-Alt-F4.