Linux Commands Examples

A great documentation place for Linux commands


list resources in widgets

see also : X - xrdb


listres [-option ...]

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!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


The listres program generates a list of a widget’s resource database. The class in which each resource is first defined, the instance and class name, and the type of each resource is listed. If no specific widgets or the -all switch are given, a two-column list of widget names and their class hierarchies is printed.


Listres accepts all of the standard toolkit command line options along with those listed below:


This option indicates that listres should print information for all known widgets and objects.


This option indicates that resources that are inherited from a superclass should not be listed. This is useful for determining which resources are new to a subclass.


This option indicates that widgets should be identified by the names of the class record variables rather than the class name given in the variable. This is useful for distinguishing subclasses that have the same class name as their superclasses.

-top name

This option specifies the name of the widget to be treated as the top of the hierarchy. Case is not significant, and the name may match either the class variable name or the class name. The default is ’’core’’.

-format printf-string

This option specifies the printf-style format string to be used to print out the name, instance, class, and type of each resource.


Copyright 1994 X Consortium
See X(7) for a full statement of rights and permissions.

x defaults

To be written.


On operating systems that do not support dynamic linking of run-time routines, this program must have all of its known widgets compiled in. The sources provide several tools for automating this process for various widget sets.

see also

X , xrdb , appropriate widget documents


Jim Fulton, MIT X Consortium

How can this site be more helpful to YOU ?

give  feedback