Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
I'm not sure I understand your question. If you want to know what "startx" does exactly (it's a script on my system) than you can take a closer look on it:
(1) locate startx (type "which startx" in command line)
(2) open it with your favourite editor
... bounces X, but most Window Managers will kick you back to the CLI after logging out. If you are shutting down from within, it'll totally skip the console from which you started X.
Originally posted by hongxing I mean if there is a cmd named "endx" ?
thanks!
No, there is not. X is a process like any other, so to shutdown X you can press ctrl+alt+backspace while inside X, or just kill it with 'killall X'
edeCh: not everyone uses Ubuntu, be careful when advising newbies into sudoing something as Ubuntu is the only abomination using it for default root actions.. (: Itd nowadays better to just remind that it needs to be done as root and let the user figure out what their distro wants them to do to get root access.
Sudo is available on every distro but isn't the default wasy of having root privileges. The Ubuntu implementation of sudo is insecure in my personal opinion because an intruder only needs one password to be able to control the whole system.
As for ending X, I think its safer to logout than to kill X using kill or ctrl-al-backspace.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.