nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #105

LFCS Question #105: Real Exam Question with Answer & Explanation

The correct answer is C: xwininfo. The xwininfo command is used to display information about windows on an X server, and when queried for the root window, it can show the current color depth.

Submitted by kavita_s· Apr 18, 2026Essential Commands

Question

Which of the following commands shows the current color depth of the X Server?

Options

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

Explanation

The xwininfo command is used to display information about windows on an X server, and when queried for the root window, it can show the current color depth.

Common mistakes.

  • A. xcd is not a standard command for querying X server color depth.
  • B. xcdepth is not a standard command for querying X server color depth.
  • D. xcolordepth is not a standard command for querying X server color depth.
  • E. cat /etc/X11 would attempt to display the contents of the /etc/X11 directory or a file named X11, neither of which shows the current X server's runtime color depth.

Concept tested. X Server display information query

Reference. https://man7.org/linux/man-pages/man1/xwininfo.1.html

Topics

#X Server#Display settings#xwininfo#Command-line utilities

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions