Well, that's a first. Accidentally rm -rf'd /dev

· · Web · 2 · 1 · 2

@jakob you can probably udevadm control --reload-rules && udevadm trigger

@haskal I'm a caveman so I just unplugged my tower and plugged it back in

Though, I noticed sudo complaining that my terminals were removed. Are those created by udev triggers? And/or would those commands recreate them?

I have to admit that I know very little about how Linux handles devices

@jakob terminals (specifically pseudo-terminal device nodes) are in /dev/pts which is mounted as a special filesystem managed by the kernel (devpts) which lists all the current pseudo-terminal devices that are in use (0, 1, 2, ...) along with the device that can create new ones (ptmx)
udev should recreate the mount point at which point you'd see all the terminals as before

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko