LFCS · Question #770
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. The xwininfo command provides detailed information about a specific X window, including its display depth (color depth).
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(50 responses)- A6% (3)
- B4% (2)
- C86% (43)
- D2% (1)
- E2% (1)
Why each option
The `xwininfo` command provides detailed information about a specific X window, including its display depth (color depth).
`xcd` is not a standard X utility for displaying color depth.
`xcdepth` is not a standard X utility for displaying color depth.
The `xwininfo` command, when run with the `-root` option (e.g., `xwininfo -root`) or by selecting any window, can display various information about an X window, including its 'Depth', which indicates the color depth of the display.
`xcolordepth` is not a standard X utility for displaying color depth.
`cat /etc/X11` would only display the contents of the `/etc/X11` directory or the file itself, showing configured depth, not necessarily the currently running depth.
Concept tested: Checking X server color depth
Source: https://www.x.org/releases/X11R7.7/doc/man/man1/xwininfo.1.html
Topics
Community Discussion
No community discussion yet for this question.