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.
Correct. startx starts the configured local X session.
xauth --displayIncorrect. xauth manages authorization records rather than starting the server.
Incorrect. xauth manages authorization records rather than starting the server.
DISPLAY=:0Incorrect. DISPLAY is an environment variable, not a command that starts X.
Incorrect. DISPLAY is an environment variable, not a command that starts X.
window-manager --bootIncorrect. There is no standard window-manager --boot command.
Incorrect. 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のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.