Forrest logo
back to the xrdb tool

xrdb:tldr:70331

xrdb: Query the resource database and print currently set values.
$ xrdb -query
try on your machine

The xrdb -query command is used to query the X resource database (Xrdb) settings on a Unix or Linux system.

Xrdb is a utility that manages the X11 server's resource database, which stores configuration settings for X applications. The X resource database uses a configuration file called ~/.Xresources by default, where you can set various X11 resources for applications to utilize.

The xrdb -query command is used to retrieve and display the current values of the X resources defined in the resource database. It essentially lists the resource names and their corresponding values that are currently set.

For example, if you have defined a resource called xterm.foreground in your ~/.Xresources file to set the color of the foreground text in an xterm window, running xrdb -query will display the current value assigned to that resource.

Note that X resources provide configuration options for X11 applications, and the behavior of the applications can be modified by altering these resources.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xrdb tool