Linux command
Xorg 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start X server
Xorg
Start on specific display
Xorg :1
Configure and test
Xorg -configure
Start with specific config file
Xorg -config [/path/to/xorg.conf]
Start on specific virtual terminal
Xorg vt7
Query supported modes
Xorg -query [hostname]
Retro probe only
Xorg -retro -probeonly
说明
Xorg is the X Window System server implementation from X.Org Foundation. It provides the foundation for graphical user interfaces on Unix-like systems, managing displays, input devices, and graphics hardware. The server reads configuration from /etc/X11/xorg.conf or files in /etc/X11/xorg.conf.d/. Modern systems often run without explicit configuration, relying on automatic hardware detection. Xorg is typically started by a display manager (GDM, SDDM, LightDM) or the startx script rather than directly. It runs on a virtual terminal and provides the display connection for X clients.
参数
- :_DISPLAY_
- Display number to use (default: 0).
- -config _FILE_
- Use specified configuration file instead of default.
- -configure
- Probe hardware and generate xorg.conf.
- -logfile _FILE_
- Write log to specified file.
- -modulepath _PATH_
- Search path for loadable modules.
- -retro
- Start with classic X stipple background.
- -probeonly
- Probe hardware without starting server.
- -query _HOST_
- Connect to XDMCP host.
- -verbose _N_
- Verbosity level (0-7).
- vt_N_
- Use virtual terminal N.
- -nolisten _PROTO_
- Disable listening on protocol (e.g., tcp).
- -novtswitch
- Don't automatically switch VT at startup.
FAQ
What is the Xorg command used for?
Xorg is the X Window System server implementation from X.Org Foundation. It provides the foundation for graphical user interfaces on Unix-like systems, managing displays, input devices, and graphics hardware. The server reads configuration from /etc/X11/xorg.conf or files in /etc/X11/xorg.conf.d/. Modern systems often run without explicit configuration, relying on automatic hardware detection. Xorg is typically started by a display manager (GDM, SDDM, LightDM) or the startx script rather than directly. It runs on a virtual terminal and provides the display connection for X clients.
How do I run a basic Xorg example?
Run `Xorg` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does :_DISPLAY_ do in Xorg?
Display number to use (default: 0).