Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. $ ps aux | head -n2
  2. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
  3. root 1 0.0 0.0 200892 5132 ? Ss Mar04 0:20 /sbin/init
  4.  
  5. Here are the different values that the s, stat and state output
  6. specifiers (header "STAT" or "S") will display to describe the state of a process:
  7.  
  8. D uninterruptible sleep (usually IO)
  9. R running or runnable (on run queue)
  10. S interruptible sleep (waiting for an event to complete)
  11. T stopped by job control signal
  12. t stopped by debugger during the tracing
  13. W paging (not valid since the 2.6.xx kernel)
  14. X dead (should never be seen)
  15. Z defunct ("zombie") process, terminated but not reaped by its parent
  16.  
  17. ps aux | awk '$8=="T"'
  18.  
  19. ps aux | awk '$8~/T/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement