Linux X command

Updated: 05/04/2019 by Computer Hope
x command

On Unix-like operating systems, X, typically located at /usr/bin/X, is the original X server executable of MIT's X Window System.

Typically, you do not need to run X manually.

If what you'd like to do is start a new X Window session, use the startx command instead.

History of X and Xorg

In 2009, due to changes in its license, the codebase of X was forked to a new version called Xorg, and is included on systems at the default location /usr/bin/Xorg.

The X executable is still included as a compatibility layer for programs which expect it to be there. So, for all intents and purposes, X passes commands to Xorg.


X [:display] [option]


-a #

Default pointer acceleration.


Disable access control restrictions.

-audit int

Set audit trail level.

-auth file

Select authorization file.


Create root window with black background.


Enable any backing store support.


Disable any backing store support.


Turns off key-click.

c #

Key-click volume (0-100).

-cc int

Default color visual class.


Disable the cursor.


Generate core dump on fatal error.

-dpi int

Screen resolution in dots per inch,


Disables VESA DPMS (Energy Star) monitor control.

-deferglyphs [none|all|16]

Defer loading of [no|all|16-bit] glyphs.

-f #

Dbell base (0-100).

-fc string

Cursor font.

-fn string

Default font name.

-fp string

Default font path.


Prints message with these options.


Ignore all remaining arguments.

-ld N

Limit data space to N Kb.

-lf N

Limit number of open files to N.

-ls N

Limit stack space to N Kb.


Disable the locking mechanism.

-nolisten string

Don't listen on protocol string.


Don't reset after last client exists.


Create root window with no background.


Reset after last client exists.

-p #

Screen-saver pattern duration (minutes).


Accept failure to listen on all ports.


Reject failure to listen on all ports.


Turns off auto-repeat.


Turns on auto-repeat.

-render [default|mono|gray|color]

Set render color alloc policy.


Start with classic stipple and cursor.

-s #

Screen-saver timeout (minutes).

-seat string

Seat to run on.

-t #

Default pointer threshold (pixels/t).


Terminate at server reset.

-to #

Connection time out.


Disable testing extensions.


Server started from init on /dev/ttyxx.


Video blanking for screen-saver.


Screen-saver without video blanking.


WhenMapped default backing-store.


Create root window with white background.


Set maximal bigrequest size.


Enable XINERAMA extension.


Disable XINERAMA extension.


Disable smart scheduling, enable old behavior.

-schedInterval int

Set scheduler interval in milliseconds.


Enable SIGSTOP based startup.

+extension name

Enable extension.

-extension name

Disable extension.

-query host-name

Contact named host for XDMCP.


Broadcast for XDMCP.

-multicast [addr [hops]]

IPv6 multicast for XDMCP.

-indirect host-name

Contact named host for indirect XDMCP.

-port port-num

UDP port number to send messages.

-from local-address

Specify the local address to connect from.


Terminate server after one session.

-class display-class

Specify display class to send in manage.

-cookie xdm-auth-bits

Specify the magic cookie for XDMCP.

-displayID display-id

Manufacturer display ID for request.

[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]

Enable/disable accessx key sequences.


Set XKB autorepeat delay.


Set XKB autorepeat interval.

Device-Dependent Options

-modulepath paths

Specify the module search path.

-logfile file

Specify a log file name.


Probe for devices and write an xorg.conf.


Print available options for all installed drivers.

-config file

Specify a configuration file, relative to the xorg.conf search path; only root can use absolute.

-configdir dir

Specify a configuration directory, relative to the xorg.conf.d search path; only root can use absolute.

-verbose [n]

Verbose startup messages.

-logverbose [n]

Verbose log messages.


Minimal startup messages.


Use 24bpp pixmaps for depth 24.


Use 32bpp pixmaps for depth 24.

-fbbpp n

Set bpp for the framebuffer. Default: 8.

-depth n

Set colour depth. Default: 8.

-gamma f

Set gamma value (0.1 - 10.0) Default: 1.0.

-rgamma f

Set gamma value for red phase.

-ggamma f

Set gamma value for green phase.

-bgamma f

Set gamma value for blue phase.

-weight nnn

Set RGB weighting at 16 bpp. Default: 565.

-layout name

Specify the ServerLayout section name.

-screen name

Specify the Screen section name.

-keyboard name

Specify the core keyboard InputDevice name.

-pointer name

Specify the core pointer InputDevice name.


Disable Silken Mouse.


Swap default black/white pixel values.


Disable mode adjustments with xvidtune.


Allow xvidtune to be run as a non-local client.


Start server even if the mouse can't be initialized.


Make module ABI mismatches non-fatal.

-isolateDevice bus_id

Restrict device resets to bus_id (PCI only).


Show the server version.


Show the server default module path.


Show the server default library path.


Don't automatically switch VT at reset & exit.


Share VTs with another X server.

-mir MirID

Run nested in a Mir compositor with app id MirID.


Use the specified VT number.


Don't detach controlling tty (for debugging purposes).

startx — Start an X Window System session.
Xorg — The executable of the X Window System server.