nerdexam
Linux_Foundation

LFCS · Question #770

X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?

The correct answer is C. xwininfo. The xwininfo command provides detailed information about a specific X window, including its display depth (color depth).

Submitted by femi9· Apr 18, 2026Operation of Running Systems

Question

X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?

Options

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

How the community answered

(50 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    86% (43)
  • D
    2% (1)
  • E
    2% (1)

Why each option

The `xwininfo` command provides detailed information about a specific X window, including its display depth (color depth).

Axcd

`xcd` is not a standard X utility for displaying color depth.

Bxcdepth

`xcdepth` is not a standard X utility for displaying color depth.

CxwininfoCorrect

The `xwininfo` command, when run with the `-root` option (e.g., `xwininfo -root`) or by selecting any window, can display various information about an X window, including its 'Depth', which indicates the color depth of the display.

Dxcolordepth

`xcolordepth` is not a standard X utility for displaying color depth.

Ecat /etc/X11

`cat /etc/X11` would only display the contents of the `/etc/X11` directory or the file itself, showing configured depth, not necessarily the currently running depth.

Concept tested: Checking X server color depth

Source: https://www.x.org/releases/X11R7.7/doc/man/man1/xwininfo.1.html

Topics

#X Window System#xwininfo#Color depth#Display information

Community Discussion

No community discussion yet for this question.

Full LFCS Practice