LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-28-2005, 03:01 AM   #1
hongxing
Member
 
Registered: Oct 2005
Posts: 73

Rep: Reputation: 15
what's the correspond cmd of startx?


in SuSE Linux, there is a command named startx which start the X Server
my question is what's the correspond command?

thanks!
 
Old 11-28-2005, 03:02 AM   #2
hongxing
Member
 
Registered: Oct 2005
Posts: 73

Original Poster
Rep: Reputation: 15
can anyone explain the variable DISPLAY?

what's its usage?

thanks!
 
Old 11-28-2005, 04:05 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
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

So a
Code:
less `which startx`
does open up the startx script with less viewer.
 
Old 11-28-2005, 04:46 AM   #4
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
you can also try

>>type startx<<

that one shows the definition; moreover it also works with aliases
 
Old 11-28-2005, 05:52 PM   #5
hongxing
Member
 
Registered: Oct 2005
Posts: 73

Original Poster
Rep: Reputation: 15
I mean if there is a cmd named "endx" ?

thanks!
 
Old 11-28-2005, 07:27 PM   #6
number9
Member
 
Registered: Dec 2003
Location: Fresno
Distribution: Gentoo Ricer
Posts: 85

Rep: Reputation: 15
Code:
CTRL+ALT+Backspace
... 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.
 
Old 11-29-2005, 03:53 AM   #7
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
you can also try

Code:
sudo init 3
for going to text-console mode, and

Code:
sudo init 5
for restarting xdm
 
Old 11-29-2005, 04:53 AM   #8
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Quote:
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.
 
Old 11-29-2005, 05:36 AM   #9
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
Quote:
not everyone uses Ubuntu
actually i thought the sudo command to be available on most distributions; at least on SUSE which i am using right now it works;
Quote:
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.
but i think you have a good point here
 
Old 11-29-2005, 05:43 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CMD For Linux ebrind Red Hat 9 11-29-2004 09:51 AM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
What is the cmd for RH 9.0 ipconfig? Thaidog Red Hat 6 02-20-2004 10:16 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration