I am trying to find out which tty or pts is being run by which process.
My research so far is that:
- tty is a kernel or backend terminal to handle lower level stuffs
- pts is a pesudo terminal to allow user to communicate with the system
- there are a lot of tty and pts files in
/devbut cannot be read
Would like to ask the following questions:
Why does
/dev/ptsand/devcontains so much numbers (eg 1-26) despiteps -aux | grep ptsonly showing 4 pts entriesIs it possible to determine what process is running a pts or tty? As I read that ssh spawns a new shell, but not sure if its a pts or tty