LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   display Process State (https://www.linuxquestions.org/questions/linux-newbie-8/display-process-state-655082/)

hiteshthappa 07-11-2008 06:49 AM

display Process State
 
hi

can anyone plz tell me how to display Process States using ps command
:study:

pixellany 07-11-2008 07:27 AM

Probably homework--see OP's other post.

Here's an excerpt from "man ps". This should get you started.

Quote:

PROCESS STATE CODES
Here are the different values that the s, stat and state output specifiers
(header "STAT" or "S") will display to describe the state of a process.
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 (should never be seen)
Z Defunct ("zombie") process, terminated but not reaped by its parent.


syg00 07-11-2008 07:28 AM

sign up to ask homework q's ???.


All times are GMT -5. The time now is 11:23 PM.