Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get very different results when using

X -config /etc/X11/xorg.conf

than just plain


Namely, that the 1st command just gives me a black screen, while startx actually shows some X windows.

share|improve this question

As the startx man page says,

startx - initialize an X session
The startx script is a front end to xinit that provides a somewhat nicer user interface for running a single session of the X Window System. It is often run with no arguments.

The X command runs the X server. startx does that and also initializes the session, i.e. runs what is specified in the configuration files, typically the windowing environment, xterm etc.

To determine the client to run, startx first looks for a file called .xinitrc in the user’s home directory. If that is not found, it uses the file xinitrc in the xinit library directory.

To illuminate further, startx uses these files:

   $(HOME)/.xinitrc         Client  to  run.  Typically a shell script which runs many programs in the

   $(HOME)/.xserverrc       Server to run.  The default is X.

                            Client to run if the user has no .xinitrc file.

                            Server to run if the user has no .xserverrc file.
share|improve this answer

the startx uses the files listed in the other reply,while the "-config" option uses a user-specified configuration file

share|improve this answer
The -config option specifies the X server configuration. It is not equivalent to an xinitrc or xserverrc file. – nagul Aug 28 '09 at 20:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .