Guest User

Untitled

a guest
Dec 7th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. ps --ppid 2 -p 2 --deselect
  2.  
  3. ps axl | awk '$7 != 0 && $10 !~ "Z"'
  4.  
  5. ps -e -o pid= -o state= -o vsize= | awk '$2 != "Z" && $3 != 0 {print $1}'
  6.  
  7. ps /proc/[0-9]*/exe(^-@:h:t)
  8.  
  9. ps -p "$(find -L /proc/[0-9]*/exe ! -type l | cut -d / -f3 | paste -sd , -)"
  10.  
  11. ps -p "$(
  12. { find -L /proc/[0-9]*/exe ! -type l | cut -d / -f3
  13. ps -eo pid=,state= | sed -n 's/ Z//p'
  14. } | paste -sd , -)"
  15.  
  16. ps auxf | grep -v ]$
  17.  
  18. ps -o pid,user,comm,vsz,stat | awk '$4 != 0 && $5 !~ "Z"'
  19.  
  20. $ ps -o foo
  21. ps: bad -o argument 'foo', supported arguments: user,group,comm,args,pid,ppid,pgid,tty,vsz,stat,rss
  22.  
  23. ps aux | awk '{p[($5 == 0)]++} END {printf "%-16s %6dn%-16s %6dn", "Kernel processes", p[1], "User processes", p[0]}'
  24.  
  25. Kernel processes 354
  26. User processes 59
  27.  
  28. ps aux | awk '$NF!~/^[.+]$/'
Add Comment
Please, Sign In to add comment