Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

top 'xterm': unknown terminal type

I have an error when run TOP command:

>top
'xterm': unknown terminal type.

> echo $TERM
xterm

> echo $DISPLAY
DYSPLAY: Undefined variable.

> cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)

> ls /usr/share/terminfo/
1 2 3 4 5 6 7 8 9 a A b c d e E f g h i j k l L m M n N o p P q Q r s t u v w x X z


> ls /usr/share/terminfo/x/xterm
/usr/share/terminfo/x/xterm

i have that problem also with Root.

does TOP use xterm?

How can i do?

like image 712
Marco Rocci Avatar asked Jul 10 '14 12:07

Marco Rocci


Video Answer


1 Answers

try adding

export TERM=linux

at the end of your .bashrc files (/home/myuser/.bashrc, /root/.bashrc). The problem is that the terminal definition 'xterm' is undefined

like image 190
Craig Avatar answered Sep 19 '22 18:09

Craig