About
OS - Terminal (Emulator) (Term|tty) in the context of Linux
Articles Related
The Linux Programmer manual
- onlinepubs/009695399/functions/isatty.html - does this descriptor refer to a terminal
- onlinepubs/009695399/functions/ttyname.html, onlinepubs/009695399/functions/ttyname_r.html - return name of a terminal
Environment variable
The value of TERM only tells an application program what terminal you are using.
echo $TERM
xterm
See X11 - Xterm
According to the SSH RFC, the TERM variable is set when initializing the SSH connection. This is set initially, regardless of AcceptEnv. https://tools.ietf.org/html/rfc4254#section-6.2