An X server manages a display, and a GUI application displays windows on it.
Which relationship is correct?
The X server manages display and input devices, while X clients request drawing and other operations from it.
Detailed explanation
Incorrect. The X server, not the client, owns the display and input resources.
Incorrect. The X server, not the client, owns the display and input resources.
Correct. The server manages resources and clients request operations.
Correct. The server manages resources and clients request operations.
Incorrect. X server responsibility is not limited to storing configuration files.
Incorrect. X server responsibility is not limited to storing configuration files.
Incorrect. Client and server can be separate processes and even separate hosts.
Incorrect. Client and server can be separate processes and even separate hosts.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' "${DISPLAY-<unset>}"Expected result
現在shellのDISPLAY値または<unset>Key points
- X server
- X client
- Display resources
Notes
- Environment: 環境変数の読み取りのみ
- 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.