$ ps -aux | grep "bash"
host 2003 0.0 0.5 9836 5672 pts/0 Ss 2018 0:00 -bash
host 2116 0.0 0.5 9836 5156 pts/1 Ss 2018 0:00 -bash
host 2306 0.0 0.5 9836 5608 pts/10 Ss 2018 0:00 -bash
host 25746 0.0 0.1 5300 1328 pts/0 S+ 14:53 0:00 /bin/bash ./auto_run.sh
host 28347 0.0 0.6 9852 6300 pts/5 Ss+ 20:10 0:00 -bash
host 28436 0.0 0.6 9844 6168 pts/11 Ss 20:11 0:00 -bash
host 28523 0.0 0.0 4680 828 pts/11 S+ 20:24 0:00 grep --color=auto bash
host 32093 0.0 0.6 9860 6176 pts/4 Ss Mar25 0:00 -bash
ls -l /proc/<PID> | grep "cwd"
$ ls -l /proc/25746 | grep "cwd"
lrwxrwxrwx 1 host host 0 Apr 17 14:53 cwd -> /home/work/project
$
sudo netstat -ap | grep <port>
$ sudo netstat -ap | grep 8081
tcp6 0 0 [::]:8081 [::]:* LISTEN 10296/node
$
$ ps -aux | grep 10296
host 10296 0.5 5.8 173176 60120 pts/1 Sl+ 2018 997:33 node server.js 1
host 28535 0.0 0.0 4680 828 pts/11 S+ 20:32 0:00 grep --color=auto 10993
$