Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 4 Question 120 Discussion

Posted by Fredric on May 28, 2026 at 12:04 PM

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?

Suggested Answer: C

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 ...]


Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
15 comments · newest first
AN
Andra 1 month ago
I’m not sure, but C) xwininfo seems like a good guess.
TU
Tuyet 1 month ago
I agree with Taryn. B) xcdepth sounds most relevant.
LO
Lorean 1 month ago
I doubt E) cat /etc/X11 is correct. That’s just a config file.
TA
Taryn 2 months ago
I’m leaning towards B) xcdepth. It makes sense for color depth.
RO
Ronny 2 months ago
Yeah, but I feel like A) xcd could be it too. Sounds familiar.
RA
Rashad 2 months ago
I think the answer is C) xwininfo. It shows window info, right?
JO
Jospeh 2 months ago
Yeah, `xwininfo` is the right command.
PE
Peggie 2 months ago
Wait, are you sure about that?
AU
Augustine 2 months ago
No way, it's `xcolordepth` for sure!
CA
Cathern 3 months ago
I thought it was `xcd`?
IS
Isabella 3 months ago
It's definitely `xwininfo` that shows color depth.
CO
Corrina 3 months ago
I feel like the answer might be xcd, but I’m not confident. I should have reviewed more before the exam!
JU
Julie 3 months ago
I'm leaning towards xcolordepth, but I can't recall if that's actually a valid command in X.
LO
Lorrie 3 months ago
I remember practicing a similar question, and I think it was about checking display settings. Could it be xcdepth?
PA
Pamella 3 months ago
I think the command to check color depth is something like xwininfo, but I'm not entirely sure.
0/2000 characters

Save Cancel