nerdexam
Linux_Foundation

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.

Submitted by chen.hong· Apr 18, 2026Operation of Running Systems

Question

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?

Options

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

How the community answered

(20 responses)
  • A
    5% (1)
  • C
    90% (18)
  • E
    5% (1)

Why each option

The `xwininfo` command provides detailed information about a specific X window or the root window, including its color depth.

Axcd

`xcd` is not a standard command for checking X color depth; it might be mistaken for `cd` or a non-existent X utility.

Bxcdepth

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

CxwininfoCorrect

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.

Dxcolordepth

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

Ecat /etc/X11

`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

#X Window System#Color Depth#System Information#xwininfo

Community Discussion

No community discussion yet for this question.

Full LFCS Practice