SLATTACH(8)

πŸ“¦
version 2.10 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian bookworm, debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ SLATTACH(8) ✨

πŸŽ€ NAME

slattach πŸ’– attach a network interface to a serial line

πŸ¦‹ SYNOPSIS

slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]

🌸 DESCRIPTION

okay so slattach is a tiny little program but it is iconic πŸ’… It can put a normal terminal ("serial") line into one of several "network" modes, which means you can use that line for point-to-point links to other computers. no cap, it's giving main character energy πŸ‘‘

✨ OPTIONS ✨

  • tty 🧚 β€” the path to a serial device like /dev/ttyS*, /dev/cua* or /dev/ptmx, which spawns a brand new pseudo tty for you.
  • [-c command] πŸ“ β€” run command when the line gets hung up. Super handy for running scripts or re-establishing connections when a link goes down 😭
  • [-d] πŸ”₯ β€” turns on debugging output. Lowkey essential when you're trying to figure out why a setup isn't working πŸ™ˆ
  • [-h] πŸ’œ β€” exit when the carrier is lost. This works on both /dev/tty and /dev/cua devices by directly checking the carrier status every 15 seconds ⭐
  • [-v] 🫢 β€” turns on verbose output. Very useful in shell scripts.
  • [-q] 🀫 β€” quiet mode, so no messages at all.
  • [-l] πŸ”’ β€” creates a UUCP-style lockfile for the device in /var/lock.
  • [-n] πŸ’… β€” the same as the mesg n command.
  • [-m] 🌈 β€” do not initialize the line into 8 bits raw mode.
  • [-e] πŸ¦‹ β€” exit right after initializing the device, instead of waiting for the line to hang up.
  • [-L] 🌷 β€” enables 3 wire operation. The terminal moves into CLOCAL mode and carrier watching is disabled.
  • [-p proto] πŸŽ€ β€” sets a specific protocol to use on the line. The default is cslip (compressed SLIP). Other options are slip (normal SLIP), adaptive (adaptive CSLIP/SLIP), ppp (Point-to-Point Protocol) and kiss (used for talking to AX.25 packet radio terminal node controllers). The special argument tty puts the device back into normal serial operation.
⚠️ Using ppp mode isn't normally useful, because ppp needs an extra ppp daemon, pppd, to be running on the line. For kiss connections, you should use the kissattach program instead.
  • [-s speed] ⚑ β€” sets a specific line speed, other than the default.

If no arguments are given, the current terminal line (usually the login device) gets used. Otherwise, slattach tries to claim the terminal port you named, lock it, and open it πŸ’–

πŸ“‚ FILES

/dev/cua* /var/lock/LCK.* /dev/ttyS* /dev/ptmx

πŸ™ˆ BUGS

None known. πŸ₯Ή

πŸ”— SEE ALSO

kissattach(8), dip(8), pppd(8), sliplogin(8)

🫢 AUTHORS

Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> Alan Cox, <Alan.Cox@linux.org> Miquel van Smoorenburg, <miquels@drinkel.ow.org> George Shearer, <gshearer@one.net> Yossi Gottlieb, <yogo@math.tau.ac.il>


bestie, that's the whole slattach tea 🌈✨ net-tools, dated 2011-12-31, and that's a wrap πŸ’…πŸ©·