nerdexam
CompTIA

LX0-103 · Question #170

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. xwininfo is the standard X utility that reports detailed information about an X window, including its color depth.

System Architecture

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

(29 responses)
  • B
    3% (1)
  • C
    86% (25)
  • D
    3% (1)
  • E
    7% (2)

Why each option

`xwininfo` is the standard X utility that reports detailed information about an X window, including its color depth.

Axcd

`xcd` is not a valid or recognized X11 utility command.

Bxcdepth

`xcdepth` does not exist as a standard X11 command.

CxwininfoCorrect

`xwininfo` queries the X server for properties of a specified window, and its output includes the depth field which indicates the number of bits per pixel (color depth) currently in use. Running `xwininfo -root` targets the root window and will display the color depth of the active X session without requiring a restart or config file read.

Dxcolordepth

`xcolordepth` is not a real X11 utility.

Ecat /etc/X11

`/etc/X11` is a directory containing X configuration files, not an executable, and reading it would show static config values rather than the running color depth.

Concept tested: X Window System color depth inspection with xwininfo

Source: https://linux.die.net/man/1/xwininfo

Topics

#xwininfo#X11#color depth#display information

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice