nerdexam
CompTIA

LX0-104 · 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 is a utility in the X Window System that displays information about windows, including their geometry and attributes, which can implicitly reveal the screen's color depth.

User Interfaces and Desktops

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

(27 responses)
  • B
    4% (1)
  • C
    93% (25)
  • D
    4% (1)

Why each option

The `xwininfo` command is a utility in the X Window System that displays information about windows, including their geometry and attributes, which can implicitly reveal the screen's color depth.

Axcd

'xcd' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.

Bxcdepth

'xcdepth' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.

CxwininfoCorrect

The `xwininfo` command, when run without specific window arguments (e.g., `xwininfo -root`), reports detailed information about the root window, which includes the display's visual class and depth (e.g., "Depth: 24"). This directly indicates the current color depth of the X server.

Dxcolordepth

'xcolordepth' is not a standard X utility for displaying color depth; it might be a typo or a non-existent command.

Ecat /etc/X11

`cat /etc/X11` would display the contents of the `/etc/X11` directory or its configuration files, but it doesn't dynamically show the *running* color depth of an active X session.

Concept tested: X Window System color depth check

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

Topics

#X Window System#xwininfo#display settings

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice