ttytype(5)
๐ ttytype โ the girlies' guide to /etc/ttytype ๐
okay so bestie, you found the ttytype page in the File Formats Manual section of the ttytype(5) docs, and honestly? it's a little vintage treasure ๐ let's get into it.
โจ NAME โจ
ttytype โ terminal device to default terminal type mapping. that's it, that's the whole vibe: it's the lil matchmaker between your tty line and what terminal type it should pretend to be ๐
๐ธ DESCRIPTION ๐ธ
so the file /etc/ttytype is out here doing matchmaking ๐ it hooks up termcap(5) and terminfo(5) terminal type names with tty lines. like, it's setting them up on a date.
each line in the file is giving a very specific format, no room for chaos:
- a terminal type first
- then some whitespace (breathe, girl, add a space)
- then a tty name โ and NOT the full path, it's the device name without the
/dev/prefix. so liketty1, not/dev/tty1. important โจ
and who actually uses this association? that would be tset(1) ๐ it reads the file so it can set the environment variable TERM to the default terminal name for whatever tty the user is currently on. main character energy fr fr.
now, real talk ๐ซถ this whole facility was designed way back for a traditional time-sharing environment โ think character-cell terminals hardwired to a UNIX minicomputer. it's giving museum. ๐๏ธ and ngl, it's little used on modern workstation and personal UNIX systems. so if you're on your lil laptop, this file is probably just sitting there being decorative ๐
๐ FILES ๐
/etc/ttytypeโ the tty definitions file. the one and only, the icon, the blueprint ๐
๐ EXAMPLES ๐
a typical /etc/ttytype looks exactly like this, no cap:
con80x25 tty1
vt320 ttys0
see how it's just type + space + tty name? so clean, so iconic โจ
๐ SEE ALSO ๐
termcap(5)terminfo(5)agetty(8)minggetty(8)
go read those next bestie, they're the rest of the lore ๐ฆ
and that's the page!! this diva of a doc came from Linux man-pages 6.20, dated 2025-05-17 โ yeah she's fresh, she's stamped, she's slaying ๐ mwah, go touch grass and set your TERM correctly ๐โจ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms