Linux Commands Examples

A great documentation place for Linux commands


display information utility for X

see also : X - xprop - xrdb - xwininfo - xdriinfo - xvinfo


xdpyinfo [-display displayname] [-queryExtensions] [-ext extension-name]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


xdpyinfo | grep dimension
xdpyinfo | awk '/dimensions:/ {print $2}' | cut -d"x" -f1


Xdpyinfo is a utility for displaying information about an X server. It is used to examine the capabilities of a server, the predefined values for various parameters used in communicating between clients and the server, and the different types of screens and visuals that are available.

By default, numeric information (opcode, base event, base error) about protocol extensions is not displayed. This information can be obtained with the -queryExtensions option. Use of this option on servers that dynamically load extensions will likely cause all possible extensions to be loaded, which can be slow and can consume significant server resources.

Detailed information about a particular extension is displayed with the -ext extensionName option. If extensionName is all, information about all extensions supported by both xdpyinfo and the server is displayed.


To get the default host, display number, and screen.


see also

X , xprop , xrdb , xwininfo , xdriinfo , xvinfo , glxinfo


Jim Fulton, MIT X Consortium
Support for the XFree86-VidModeExtension, XFree86-DGA, XFree86-Misc, and XKB extensions added by Joe Moss

How can this site be more helpful to YOU ?

give  feedback