ttyS(4)
β¨ NAME β¨
ttyS β serial terminal lines. Okay bestie, this is the ttyS(4) page from the Kernel Interfaces Manual, and it's lowkey iconic for anyone who's ever needed a serial terminal line. π
π DESCRIPTION π
ttyS[0-3] are character devices for the serial terminal lines. That's the whole vibe: character devices, zero drama, fr fr. π¦
They are typically created by:
mknod -m 660 /dev/ttyS0 c 4 64 # base address 0x3f8
mknod -m 660 /dev/ttyS1 c 4 65 # base address 0x2f8
mknod -m 660 /dev/ttyS2 c 4 66 # base address 0x3e8
mknod -m 660 /dev/ttyS3 c 4 67 # base address 0x2e8
chown root:tty /dev/ttyS[0-3]
Look at that little lineup β ttyS0 at base address 0x3f8, ttyS1 at 0x2f8, ttyS2 at 0x3e8, and ttyS3 at 0x2e8. The mknod commands use mode 660, and then chown root:tty /dev/ttyS[0-3] comes through to complete the set. Main character behavior, no cap. π
π FILES π
/dev/ttyS[0-3]
π SEE ALSO π
Linux man-pages 6.20 Β· 2025-05-17 β that's the source/version and date, bestie. Go forth and slay with your serial terminal lines. πβ¨
π¦ 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