LFCS · Question #105
Which of the following commands shows the current color depth of the X Server?
The correct answer is C. xwininfo. The xwininfo command is used to display information about windows on an X server, and when queried for the root window, it can show the current color depth.
Question
Options
- Axcd
- Bxcdepth
- Cxwininfo
- Dxcolordepth
- Ecat /etc/X11
How the community answered
(28 responses)- B4% (1)
- C89% (25)
- E7% (2)
Why each option
The `xwininfo` command is used to display information about windows on an X server, and when queried for the root window, it can show the current color depth.
`xcd` is not a standard command for querying X server color depth.
`xcdepth` is not a standard command for querying X server color depth.
`xwininfo` is a utility that displays information about windows on an X server, and when queried for the root window, it provides details including the screen's visual information, from which the current color depth (e.g., 'Depth 24') can be determined.
`xcolordepth` is not a standard command for querying X server color depth.
`cat /etc/X11` would attempt to display the contents of the `/etc/X11` directory or a file named `X11`, neither of which shows the current X server's runtime color depth.
Concept tested: X Server display information query
Source: https://man7.org/linux/man-pages/man1/xwininfo.1.html
Topics
Community Discussion
No community discussion yet for this question.