ps -o pid,sess,cmd afx | grep -A20 cron
ps -o pid,sess,cmd afx | grep -A20 jenkins
ps -o pid,sess,cmd afx | grep -A20 java
Find a specific PID
===
ps --headers aux | head -n 1; ps aux | awk '$2 == [enter PID here] { print $0 }'
View a tree of processes
===
pstree
Comments