Linux Commands Examples

A great documentation place for Linux commands


monitor system console messages with X

see also : X - xrdb


xconsole [-toolkitoption ...] [-file file-name] [-notify] [-stripNonprint] [-daemon] [-verbose] [-exitOnFail]

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 xconsole program displays messages which are usually sent to /dev/console.


Xconsole accepts all of the standard X Toolkit command line options along with the additional options listed below:

To monitor some other device, use this option to specify the device name. This does not work on regular files as they are always ready to be read from.

-notify -nonotify

When new data are received from the console and the notify option is set, the icon name of the application has " *" appended, so that it is evident even when the application is iconified. -notify is the default.


This option causes xconsole to place itself in the background, using fork/exit.


When set, this option directs xconsole to display an informative message in the first line of the text buffer.


When set, this option directs xconsole to exit when it is unable to redirect the console output.

-saveLines count

When set, xconsole only preserves count lines of message history instead of growing the text buffer without bound (a count of zero - the default - is treated as placing no limit on the history).


to get the default host and display number.


to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.




specifies required resources


In order to specify resources, it is useful to know the hierarchy of the widgets which compose xconsole. In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name.

XConsole xconsole

XConsole text

x defaults

This program uses the Athena Text widget, look in the Athena Widget Set documentation for controlling it.

Xconsole otherwise accepts resources of the same names as the command-line options (without the leading dash). "file" is a string type, "saveLines" an integer, and the remaining options are booleans.

see also

X , xrdb , Athena Text widget


Keith Packard (MIT X Consortium)

How can this site be more helpful to YOU ?

give  feedback