how to know if I'm using xterm or gnome-terminal?

Matthew Saltzman mjs at clemson.edu
Tue Feb 23 20:39:15 UTC 2010


On Tue, 2010-02-23 at 16:52 -0300, Germán A. Racca wrote: 
> Hi all:
> 
> How to know if I'm using an xterm or a gnome-terminal from command line?
> 
> The output of "echo $TERM" is "xterm" from both of them.
> 
> How to know?

$ set | grep term
COLORTERM=gnome-terminal
TERM=xterm
...

> 
> Cheers,
> Germán.

-- 
                Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs


More information about the users mailing list