How to fix the urxvt “unknown terminal type.” error in SSH windows.

When using URXVT terminal one might bump into the following error on SSH sessions when trying to display something on the screen with less or when clearing the terminal.

‘rxvt-unicode-256color’: unknown terminal type.

Simply running the command below will be enough to fix the error.

export TERM=xterm-256color

Or install the following package on remote servers:

rxvt-unicode

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.