How do I get out of the command prompt? [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

How do I get out of the command prompt? [Solved]

Postby M4dn3ss » Wed Dec 26, 2012 11:12

When I login to the command line, how do I get out without rebooting? The "exit" or "logout" command just takes me back to the command line login prompt, but I want to return to the GUI without having to press the reset button
Last edited by M4dn3ss on Wed Dec 26, 2012 12:58, edited 1 time in total.
M4dn3ss
Baby Hen
 
Posts: 14
Joined: Tue Dec 25, 2012 6:04

Re: How do I get out of the command prompt?

Postby Fitzcarraldo » Wed Dec 26, 2012 11:16

If you mean you are using a VT (virtual terminal) such as TTY1 to TTY6, rather than typing in a Konsole/Terminal window, then the way to return to X Windows running on TTY7 is to press Ctrl-Alt-F7.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7334
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: How do I get out of the command prompt?

Postby M4dn3ss » Wed Dec 26, 2012 11:34

No I mean, at the login screen when I click the button on the side and choose login to console (or whatever it was called)
(Sorry, new to Linux and just installed it this afternoon)
M4dn3ss
Baby Hen
 
Posts: 14
Joined: Tue Dec 25, 2012 6:04

Re: How do I get out of the command prompt?

Postby Fitzcarraldo » Wed Dec 26, 2012 12:15

When you write "button on the side" are you referring to the login screen? Which edition of SL did you install? KDE? GNOME? Xfce? MATE?

If you're looking at a command line prompt with a dollar ($) sign, you are logged in under your own user account. If you are looking at a command line prompt with a hash (#) sign, you are logged in as the root user (analogous to Administrator in Windows). If you see a dollar prompt, you can enter the following command and enter your (not the root user's) password when prompted:

Code: Select all
$ sudo /etc/init.d/xdm restart

If you see a hash prompt, you can enter the following command:

Code: Select all
# /etc/init.d/xdm restart

That will restart the display manager which will show you the login screen. Select the desktop environment from the menu and then login as usual.

Another thing you can do from the command line is reboot:

Code: Select all
$ sudo reboot

Code: Select all
# reboot

or shutdown:

Code: Select all
$ sudo shutdown now

Code: Select all
# shutdown now
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7334
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: How do I get out of the command prompt?

Postby M4dn3ss » Wed Dec 26, 2012 12:58

Yeah I meant the login screen (Sabayon KDE)

But that worked perfectly, thanks!
M4dn3ss
Baby Hen
 
Posts: 14
Joined: Tue Dec 25, 2012 6:04


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests