What single command will show you the running color depth while in X?

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?
A . xcd
B . xcdepth
C . xwininfo
D . xcolordepth
E . cat /etc/X11

Answer: C

Explanation:

The xwininfo command is a utility for displaying information about windows on an X server. One of the information it displays is the depth of the window, which is the number of bits per pixel used to represent the color of the window. The depth of the root window, which is the background window of the X server, is the same as the color depth of the X server. To display the depth of the root window, one can use the command xwininfo -root and look for the line that says “depth of root window”. Alternatively, one can use the command xdpyinfo, which displays information about the X server, and look for the line that says “depths of root window”.

Reference: xwininfo(1) – Linux man page

xdpyinfo(1) – Linux man page

[LPI Linux Certification/Configure the X Window System, Xorg and …]

Latest 102-500 Dumps Valid Version with 194 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments