102-500 · Question #198
Which of the following commands shows the current color depth of the X Server?
The correct answer is C. xwininfo. xwininfo is correct because it is a real X Window System utility that displays detailed information about any window, including the display's color depth (bits per pixel) when run with appropriate flags or when querying the root window. Why the distractors are wrong: A. xcd and…
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(15 responses)- C80% (12)
- D7% (1)
- E13% (2)
Explanation
xwininfo is correct because it is a real X Window System utility that displays detailed information about any window, including the display's color depth (bits per pixel) when run with appropriate flags or when querying the root window.
Why the distractors are wrong:
- A. xcd and B. xcdepth and D. xcolordepth - none of these commands exist in standard Linux/X11 distributions; they are fabricated options designed to sound plausible.
- E. cat /etc/X11 -
/etc/X11is a directory, not a file, socatcannot read it directly; moreover, X server runtime state like color depth is not stored as a plain text file there.
Memory tip: Think of xwininfo as "X Window Information" - it's the go-to tool for interrogating live X display and window properties, similar to how uname gives you kernel info. If a question asks about querying the running X server's state, xwininfo is almost always in play.
Topics
Community Discussion
No community discussion yet for this question.