LDATTACH(8)
โจ LDATTACH ๐
okay bestie, welcome to ldattach from section 8 of the manual (that's the System Administration girlies, we're in the sysadmin section, iykyk ๐). she's a little daemon that attaches a line discipline to a serial line and then just... vibes in the background forever. main character energy fr fr.
๐ธ NAME ๐ธ
ldattach โ attach a line discipline to a serial line ๐ฆ
๐ SYNOPSIS ๐
ldattach [-1278denoVh] [-i iflag] [-s speed] [-m mtu] ldisc device
๐ DESCRIPTION ๐
so. the ldattach daemon opens the device file you give it (and bestie, that file should be pointing at a serial device, that's the whole point ๐), and then it attaches the line discipline ldisc to it, so that discipline can process the data being sent and/or received. then it dips into the background while keeping the device open, which is the entire trick โ that's how the line discipline stays loaded. iconic behaviour honestly. โจ
you can name the line discipline ldisc either by name or by number, dealer's choice ๐
.
want to detach that line discipline again? just kill(1) the ldattach process. bye girl ๐
and if you run it with no arguments at all, ldattach just prints usage information. she's not gonna guess what you want, bestie ๐ญ
๐ LINE DISCIPLINES ๐
depending on your kernel release, the following line disciplines are supported (yes, "depending on your kernel release", so if one of these isn't there it's not you, it's the kernel ๐ซถ):
TTY(0) โ the default line discipline, giving you transparent operation (raw mode) plus the habitual terminal line editing capabilities (cooked mode). she does both, versatile queen ๐SLIP(1) โ Serial Line IP (SLIP) protocol processor, for transmitting TCP/IP packets over serial lines.MOUSE(2) โ device driver for RS232 connected pointing devices, aka serial mice. ๐ญ retro cutiePPP(3) โ Point to Point Protocol (PPP) processor, for transmitting network packets over serial lines.STRIP(4);AX25(5);X25(6) โ line driver for transmitting X.25 packets over asynchronous serial lines.6PACK(7);R3964(9) โ driver for Simatic R3964 module.IRDA(11) โ Linux IrDa (infrared data transmission) driver โ seehttp://irda.sourceforge.net/โจHDLC(13) โ synchronous HDLC driver.SYNC_PPP(14) โ synchronous PPP driver.HCI(15) โ Bluetooth HCI UART driver. ๐ฆGIGASET_M101(16) โ driver for Siemens Gigaset M101 serial DECT adapter.PPS(18) โ driver for serial line Pulse Per Second (PPS) source. โฑ๏ธGSM0710(21) โ driver for GSM 07.10 multiplexing protocol modem (CMUX).
โจ OPTIONS โจ
one bullet per flag, no skipping, we read them all in this house ๐
-1,--onestopbitโ set the number of stop bits of the serial line to one.-2,--twostopbitsโ set the number of stop bits of the serial line to two.-7,--sevenbitsโ set the character size of the serial line to 7 bits.-8,--eightbitsโ set the character size of the serial line to 8 bits.-d,--debugโ keepsldattachin the foreground so it can be interrupted or debugged, and prints verbose messages about its progress to standard error output. ngl this is the one you want when things get weird ๐-e,--evenparityโ set the parity of the serial line to even.-i,--iflagvalue...โ set the specified bits in thec_iflagword of the serial line. the givenvaluemay be a number or a symbolic name. ifvalueis prefixed by a minus sign, the specified bits are cleared instead. several comma-separated values may be given, so you can set and clear multiple bits at once. multitasking queen โจ-n,--noparityโ set the parity of the serial line to none.-o,--oddparityโ set the parity of the serial line to odd.-s,--speedvalueโ set the speed (the baud rate) of the serial line to the specifiedvalue.-c,--intro-commandstringโ define an intro command that is sent through the serial line before the invocation ofldattach. e.g. in conjunction with line disciplineGSM0710, the command'AT+CMUX=0\r'is commonly suitable to switch the modem into the CMUX mode. she announces herself before entering the room ๐-p,--pausevalueโ sleep forvalueseconds before the invocation ofldattach. default is one second. beauty rest ๐ด-m,--mtuvalueโ set maximum frame size forGSM0710CMUX. if not specified, traditionally the default of127has been set byldattach. this differs from 3GPP TS 27.010 default value of31bytes, so it is recommended to specify-h,--helpโ display help text and exit.-V,--versionโ display version and exit.
okay bestie quick vibe check: that -m description literally ends mid-sentence in the original ("so it is recommended to specify") and I am not going to invent an ending for it. the facts stay exactly as they are, no cap ๐ค
๐ AUTHORS ๐
Tilman Schmidt <tilman@imap.cc>
๐ฆ SEE ALSO ๐ฆ
๐ REPORTING BUGS ๐
for bug reports, use the issue tracker at https://github.com/util-linux/util-linux/issues. tell them everything, they're nice ๐
โญ AVAILABILITY โญ
the ldattach command is part of the util-linux package, which can be downloaded from the Linux Kernel Archive at https://www.kernel.org/pub/linux/utils/util-linux/.
and that's the whole page, bestie ๐ this one's running on util-linux 2.42.4, dated 2026-09-21, and it's still out here living in the LDATTACH(8) lane. go attach something. slay. periodt. ๐โจ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms