Log in at a text console and manually start a configured X Window System user session.
Which command is commonly used?
startx is an xinit front end that starts a local X server and initial client session from a text console.
Detailed explanation
startxCorrect. startx starts the configured local X session.
xauth --displayIncorrect. xauth manages authorization records rather than starting the server.
DISPLAY=:0Incorrect. DISPLAY is an environment variable, not a command that starts X.
window-manager --bootIncorrect. There is no standard window-manager --boot command.
Try it yourself
An example you can run in a temporary verification environment.
startx --help 2>&1 | head || trueExpected result
startx/xinitがある場合はhelp。X sessionは起動しないKey points
- startx
- xinit
- Local X session
Notes
- Environment: startx helpのみ
- Use read-only help or environment inspection when checking X11 commands.
- Exact display-manager and desktop packages vary by distribution.
Foundation review
Place the operation
startx is intended for a local session; a display manager is another way to start a graphical login session.
Check the side effect
Use help output or a disposable graphical environment rather than launching an X session on a production console.