Forrest logo
back to the xrandr tool

xrandr:tldr:a76ad

xrandr: Display the current state of the system (known screens, resolutions, ...).
$ xrandr --query
try on your machine

The command "xrandr --query" is used to query and display information about connected displays and the available screen resolutions on a Linux system.

Here is how the command works:

  • "xrandr" is a command-line tool in Linux used for configuring and managing display settings.
  • "--query" is an option that instructs xrandr to provide information about the connected displays and available screen resolutions.

When you run the "xrandr --query" command, the output will show a list of all the connected displays to your system. It will display information such as the display name, resolution, available refresh rates, and connection types (e.g., HDMI, VGA).

This command can be useful when you want to check if your displays are correctly recognized by the system or if you are trying to configure your displays and need to know the available resolutions and refresh rates that your graphics hardware supports.

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 xrandr tool