May 2017
Beginner
552 pages
28h 47m
English
The ps output can be selected by specifying the TTY to which the process is attached. Use the -t option to specify the TTY list:
$ ps -t TTY1, TTY2 ..
Here's an example of this:
$ ps -t pts/0,pts/1
PID TTY TIME CMD
1238 pts/0 00:00:00 bash
1835 pts/1 00:00:00 bash
1864 pts/0 00:00:00 ps