xlsclients
List X Window System client applications
TLDR
List clients on the default display
List clients on all screens
List clients with detailed information
Limit the command output length per client to a specific number of characters
Specify a particular display to inspect
List clients on remote host's display
Display version
SYNOPSIS
xlsclients [-display display] [-l] [-a] [-u] [-m] [-V]
PARAMETERS
-display display
Specifies the X server to connect to. If not specified, the value of the DISPLAY environment variable is used.
-l
Displays output in a long format. This includes the window name, icon name, and the hostname where the client is running.
-a
Lists all clients, including those usually hidden, such as internal server clients or clients that don't own any top-level windows.
-u
Includes clients even if their top-level window is currently unmapped. By default, xlsclients only shows clients whose top-level windows are mapped.
-m
Shows information specifically about the window manager client. This is useful for identifying the active window manager.
-V
Prints the xlsclients version number to standard output and then exits.
DESCRIPTION
xlsclients is a command-line utility used to list applications connected to an X Window System display. It queries the X server to identify active clients, providing information about each one, such as its resource ID and, when available, its window name and hostname.
This tool is particularly useful for system administrators and developers to diagnose issues, understand which applications are consuming display resources, or verify if specific X clients are running as expected. It can display information in a concise format or provide more detailed output depending on the options used. xlsclients helps in gaining insight into the dynamic state of an X server's client connections.
CAVEATS
xlsclients relies on the X server to provide client information, which may be limited or vary in detail depending on the X server implementation and version. It primarily lists connections to the X server rather than all processes on the system that might interact with X. It does not provide performance metrics like CPU or memory usage; other system monitoring tools are required for such details.
HISTORY
xlsclients is a fundamental utility within the X Window System's core distribution. It has been a part of the standard x11-utils or xorg-x11-apps packages for many years, maintaining its essential purpose of listing X clients without significant changes to its core functionality or options over time, reflecting its stable and specialized role in X system administration.