When using the ps command, there is a column in the Process status, for example
[David P @ Supernova: ~] $ PS u
User PID % CPU % mem vsz RSS tty stat Start Time Command
David P 3995 0.0 0.4 3324 1956 pts/2SSAug17 0: 00/bin/bash
David P 25049 0.0 0.8 7104 pts/5S +Aug19 0: 10 irssi
David P 26180 0.0 0.1 2656 908 pts/0R +PS u
The stat column lists the Process status.
TheCodesUsed are:
| Code |
Meaning |
| D |
Uninterruptible sleep (usually Io) |
| R |
Running or runnable (on run Queue) |
| S |
Interruptible sleep (waiting for an event to complete) |
| T |
Stopped, either by a job control signal or because it is being traced. |
| W |
Paging (not valid since the 2.6.xx kernel) |
| X |
Dead (shocould never be seen) |
| Z |
Defunct ("zombie ")Process, Terminated but not reaped by its parent. |
For BSD formats and when the stat keyword is used, additional characters may be displayed:
| Code |
Meaning |
| < |
High-priority (not nice to other users) |
| N |
Low-priority (nice to other users) |
| L |
Has pages locked into memory (for real-time and custom Io) |
| S |
Is a session leader |
| L |
Is multi-threaded (using clone_thread, like nptl pthreads do) |
| + |
Is in the foregroundProcessGroup |
~~ Discussion ~~
From: http://wiki.preshweb.co.uk/doku.php? Id = Linux: psflags