Linux Commands Examples

A great documentation place for Linux commands


list client applications running on a display

see also : X - xwininfo - xprop


xlsclients [-display displayname] [-a] [-l] [-m maxcmdlen]

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!


for i in $( xlsclients -l | grep -B2 "Command: *qiv" | grep ^Window | awk '{print $2}' | awk -F: '{print $1}' ) ; do


Xlsclients is a utility for listing information about the client applications running on a display. It may be used to generate scripts representing a snapshot of the user’s current session.


-display displayname

This option specifies the X server to contact.


This option indicates that clients on all screens should be listed. By default, only those clients on the default screen are listed.


List in long format, giving the window name, icon name, and class hints in addition to the machine name and command string shown in the default format.

-m maxcmdlen

This option specifies the maximum number of characters in a command to print out. The default is 10000.


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


see also

X , xwininfo , xprop


Jim Fulton, MIT X Consortium

How can this site be more helpful to YOU ?

give  feedback