deeejay

Bash - View running jobs

Jan 6th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. ps -o pid,sess,cmd afx | grep -A20 cron
  2. ps -o pid,sess,cmd afx | grep -A20 jenkins
  3. ps -o pid,sess,cmd afx | grep -A20 java
  4.  
  5. Find a specific PID
  6. ===
  7. ps --headers aux | head -n 1; ps aux |  awk '$2 == [enter PID here] { print $0 }'
  8.  
  9. View a tree of processes
  10. ===
  11. pstree
Advertisement
Add Comment
Please, Sign In to add comment