nerdexam
Linux_Foundation

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.

Submitted by kavita_s· Apr 18, 2026Essential Commands

Question

Which of the following commands shows the current color depth of the X Server?

Options

  • Axcd
  • Bxcdepth
  • Cxwininfo
  • Dxcolordepth
  • Ecat /etc/X11

How the community answered

(28 responses)
  • B
    4% (1)
  • C
    89% (25)
  • E
    7% (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.

Axcd

`xcd` is not a standard command for querying X server color depth.

Bxcdepth

`xcdepth` is not a standard command for querying X server color depth.

CxwininfoCorrect

`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.

Dxcolordepth

`xcolordepth` is not a standard command for querying X server color depth.

Ecat /etc/X11

`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

#X Server#Display settings#xwininfo#Command-line utilities

Community Discussion

No community discussion yet for this question.

Full LFCS Practice