← 返回命令列表

Linux command

startx 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Start

startx

Start

startx -- -depth [16]

Start

startx -- -dpi [100]

Start

startx [path/to/window_manager]

Start

startx -- -layout [Multihead]

说明

startx is a front-end to xinit that provides a convenient way to start an X session. It reads the user's .xinitrc file (or the system default if none exists) to determine what client programs to run. Similarly, it reads .xserverrc (or the system default) to determine the X server to start. Typically startx runs a window manager or desktop environment and sets up the X display. Arguments before -- are passed to the client, and arguments after -- are passed to the server.

参数

--
Separator between client arguments and server arguments.
-depth _value_
Server option: set color depth (e.g. 8, 16, 24).
-dpi _value_
Server option: set dots per inch for the display.
-layout _name_
Server option: use a specific server layout from xorg.conf.

FAQ

What is the startx command used for?

startx is a front-end to xinit that provides a convenient way to start an X session. It reads the user's .xinitrc file (or the system default if none exists) to determine what client programs to run. Similarly, it reads .xserverrc (or the system default) to determine the X server to start. Typically startx runs a window manager or desktop environment and sets up the X display. Arguments before -- are passed to the client, and arguments after -- are passed to the server.

How do I run a basic startx example?

Run `startx` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -- do in startx?

Separator between client arguments and server arguments.