Skip to main content

Julia Evans

« back to all TILs

You can run `tty` to see your current TTY

This is not a super useful fact but I thought it was cool and didn’t know it before: you can run tty to get the TTY device for your current terminal session.

For example, if I run tty and get /dev/pts/0, I can then go to a different terminal tab, run echo blah > /dev/pts/0, and than blah will show up in the original terminal tab.