LX0-103 · Question #170
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
The correct answer is C. xwininfo. xwininfo is the standard X utility that reports detailed information about an X window, including its color depth.
Question
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(29 responses)- B3% (1)
- C86% (25)
- D3% (1)
- E7% (2)
Why each option
`xwininfo` is the standard X utility that reports detailed information about an X window, including its color depth.
`xcd` is not a valid or recognized X11 utility command.
`xcdepth` does not exist as a standard X11 command.
`xwininfo` queries the X server for properties of a specified window, and its output includes the depth field which indicates the number of bits per pixel (color depth) currently in use. Running `xwininfo -root` targets the root window and will display the color depth of the active X session without requiring a restart or config file read.
`xcolordepth` is not a real X11 utility.
`/etc/X11` is a directory containing X configuration files, not an executable, and reading it would show static config values rather than the running color depth.
Concept tested: X Window System color depth inspection with xwininfo
Source: https://linux.die.net/man/1/xwininfo
Topics
Community Discussion
No community discussion yet for this question.