LX0-104 · Question #105
Which of the following commands shows the current color depth of the X Server?
The correct answer is C. xwininfo. The xwininfo command can be used to display detailed information about X windows, including the X Server's current color depth.
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(19 responses)- B5% (1)
- C89% (17)
- E5% (1)
Why each option
The `xwininfo` command can be used to display detailed information about X windows, including the X Server's current color depth.
`xcd` is not a standard command used to query the color depth of the X Server.
`xcdepth` is not a standard command used to query the color depth of the X Server.
When `xwininfo` is run with the `-root` option (e.g., `xwininfo -root`), it displays properties of the root window, which include the 'Depth' in bits. This 'Depth' value directly indicates the current color depth configured for the X Server.
`xcolordepth` is not a standard command used to query the color depth of the X Server.
`cat /etc/X11` would display the contents of the `/etc/X11` directory, which holds configuration files, but it does not show the live, running color depth of the X Server.
Concept tested: X server display information
Topics
Community Discussion
No community discussion yet for this question.