LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-06-2007, 04:11 PM   #1
user99099099
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
Statuses and Their Meanings


I've used Linux for some time and while I'm not expert I do have a question I've been pondering. When running the ps command, what do the statuses displayed refer to? By that I mean S, SN, S<, S<s, Ssl, Ss, Ss+, Rl, and R+. Any information's definitely appreciated.
 
Old 02-06-2007, 05:11 PM   #2
chadl
Member
 
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
Try the command:
Code:
man ps
The answer is on lines 556-578:
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.

For BSD formats and when the stat keyword is used, additional characters may
be displayed:
< 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 foreground process group

Last edited by chadl; 02-06-2007 at 05:16 PM.
 
Old 02-06-2007, 05:26 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by woverko
I've used Linux for some time and while I'm not expert I do have a question I've been pondering. When running the ps command, what do the statuses displayed refer to? By that I mean S, SN, S<, S<s, Ssl, Ss, Ss+, Rl, and R+. Any information's definitely appreciated.
This is all listed on the man page---man ps.
ps appears to be one of the "messier" commands.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kopete ICQ connection - statuses not available. Spudley Linux - Software 1 05-25-2005 02:08 PM
Directories and Meanings virtualme Linux - Newbie 1 03-24-2005 06:36 PM
% and & meanings jesus_edu Linux - Newbie 9 04-13-2004 02:27 AM
% and & meanings jesus_edu Linux - Software 1 04-09-2004 02:46 PM
RPMTAG_REQUIREFLAGS meanings? eantoranz Programming 0 01-26-2004 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration