nerdexam
CompTIA

LX0-104 · 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 can be used to display detailed information about X windows, including the X Server's current color depth.

User Interfaces and Desktops

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

(19 responses)
  • B
    5% (1)
  • C
    89% (17)
  • E
    5% (1)

Why each option

The `xwininfo` command can be used to display detailed information about X windows, including the X Server's current color depth.

Axcd

`xcd` is not a standard command used to query the color depth of the X Server.

Bxcdepth

`xcdepth` is not a standard command used to query the color depth of the X Server.

CxwininfoCorrect

When `xwininfo` is run with the `-root` option (e.g., `xwininfo -root`), it displays properties of the root window, which include the 'Depth' in bits. This 'Depth' value directly indicates the current color depth configured for the X Server.

Dxcolordepth

`xcolordepth` is not a standard command used to query the color depth of the X Server.

Ecat /etc/X11

`cat /etc/X11` would display the contents of the `/etc/X11` directory, which holds configuration files, but it does not show the live, running color depth of the X Server.

Concept tested: X server display information

Topics

#X Server#display configuration#xwininfo

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice