LX0-104 · Question #549
X is running okay but an administrator is concerned that the correct color depth set is not configured. Which of the following commands will show the administrator the running color depth while in X?
The correct answer is C. xwininfo. The xwininfo command is a utility in the X Window System that displays information about windows, including their geometry and attributes, which can implicitly reveal the screen's color depth.
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(27 responses)- B4% (1)
- C93% (25)
- D4% (1)
Why each option
The `xwininfo` command is a utility in the X Window System that displays information about windows, including their geometry and attributes, which can implicitly reveal the screen's color depth.
'xcd' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.
'xcdepth' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.
The `xwininfo` command, when run without specific window arguments (e.g., `xwininfo -root`), reports detailed information about the root window, which includes the display's visual class and depth (e.g., "Depth: 24"). This directly indicates the current color depth of the X server.
'xcolordepth' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.
`cat /etc/X11` would display the contents of the `/etc/X11` directory or its configuration files, but it doesn't dynamically show the *running* color depth of an active X session.
Concept tested: X Window System color depth check
Source: https://www.x.org/releases/current/doc/man/man1/xwininfo.1.html
Topics
Community Discussion
No community discussion yet for this question.