STATSERIAL(1)
π STATSERIAL(1) β the statserial glow-up
okay so bestie, this is the statserial page from the Linux User Commands manual, and it's honestly iconic for debugging serial-port drama. Let's get into it π«Ά
β¨ NAME β¨
statserial β display serial port modem status lines
like, it shows you what the modem lines are doing. that's the whole vibe. π
πΈ SYNOPSIS πΈ
statserial [-n | -d | -x] <device-name>
π¦ DESCRIPTION π¦
statserial displays a table of the signals on a standard 9-pin or 25-pin serial port, and it tells you the status of the handshaking lines. highkey useful for debugging problems with serial ports or modems β it's giving "diagnostic main character energy" ngl β¨
The optional device-name parameter is the full name of the device file for the serial port in question. If you don't specify it, the default comes from the environment variable MODEM if set, otherwise it falls back to /dev/cua1. slay, sensible defaults π
π COMMAND-LINE OPTIONS π
heads up bestie: each of the command line options is mutually exclusive. pick one, okay? one. not all three. π
-nβ Normallystatserialwill loop continuously, updating the status at one second intervals; you can exit using Ctrl+C. The-noption disables looping. so it prints once and dips π-dβ With this option the status of the modem is printed as a decimal number. The bits are encoded as follows (XXXindicates unused bits):
+---+---+---+---+---+---+---+---+---+
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+---+---+---+---+---+---+---+---+---+
|DSR|RI |DCD|CTS|XXX|XXX|RTS|DTR|XXX|
+---+---+---+---+---+---+---+---+---+
-xβ This option is the same as-d, except that the output is in hexadecimal. hex girl summer π₯
π BUGS/LIMITATIONS π
bestie read this part fr fr, it's the plot twist π
statserialonly works with devices that support theTIOCMGETioctl.- You need permission to read the device file.
- The device file may be locked if other applications are using it.
no cap, if it's not working, check these three things first. π
π§ AUTHOR π§
statserial was written by Jeff Tranter (Jeff_Tranter@Mitel.COM), later updated by Frank Baumgart (godot@uni-paderborn.de) and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details. legends only ππ
π SEE ALSO π
setserial(8)stty(1)/usr/src/linux/drivers/char/serial.c/usr/include/linux/termios.h
and that's the whole page, bestie! π this one's a Linux manual page, dated 17 December 1994 β vintage but still eating, iykyk πβ¨π
π¦ where this page comes from
- fedora 43: statserial 1.1-73.fc43 Β· GPL-2.0-or-later
- fedora 44: statserial 1.1-74.fc44 Β· GPL-2.0-or-later
- nixos 26.05: statserial 1.1
- nixpkgs unstable: statserial 1.1
- opensuse-leap 16.0: statserial 1.1-bp160.1.7 Β· GPL-2.0+
- opensuse-leap 16.0: statserial 1.1-bp160.1.7 Β· GPL-2.0+
- opensuse-leap 16.0: statserial 1.1-bp160.1.7 Β· GPL-2.0+
- opensuse-leap 16.0: statserial 1.1-bp160.1.7 Β· GPL-2.0+
- Copyright (C) 1994 Jeff Tranter
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms