LFCS · 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 provides detailed information about a specific X window or the root window, including its color depth.
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(20 responses)- A5% (1)
- C90% (18)
- E5% (1)
Why each option
The `xwininfo` command provides detailed information about a specific X window or the root window, including its color depth.
`xcd` is not a standard command for checking X color depth; it might be mistaken for `cd` or a non-existent X utility.
`xcdepth` is not a standard X command for checking color depth.
The `xwininfo` command can be used to display various attributes of a window on an X server, including its depth (which corresponds to color depth). When run without arguments, it prompts the user to select a window, or you can specify the root window using `xwininfo -root` to get display information.
`xcolordepth` is not a standard X command for checking color depth.
`cat /etc/X11` would only display the contents of the `X11` directory or file, not the *running* color depth, which is a dynamic attribute of the X server.
Concept tested: X Window System diagnostics
Source: https://linux.die.net/man/1/xwininfo
Topics
Community Discussion
No community discussion yet for this question.