linux ps命令的含义,Linux下ps命令显示含义

Linux下ps命令显示含义

发布时间:2007-08-05 15:49:09来源:红联作者:augset

linux下ps命令后地status项

显示Rs代表什么含义

R表示run

s代表sleep

那么R与s合起来是什么?

以及大写S与小写s有什么区别

经常看到Ss地状态。

问题补充:PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

ntp 5491 0.0 0.2 5160 5160 ? SLs Oct31 0:04 ntpd -u ntp:ntp -

root 5494 0.0 0.1 5160 3452 ? S Oct31 0:00 ntpd -u ntp:ntp -

nobody 5849 0.0 0.0 3568 784 ? Ss Oct31 0:55 /usr/sbin/gmond

root 24041 0.0 0.0 0 0 ? S 07:32 0:00 [pdflush]

root 24460 0.0 0.1 8196 2192 ? Ss 19:54 0:00 sshd: user [priv]

user 24462 0.0 0.1 8212 2280 ? S 19:54 0:00 sshd: user@notty

user 24503 0.0 0.1 17312 3612 ? S 19:54 0:00 /home/user/bin/li

root 24551 0.1 0.1 8532 2244 ? Ss 20:07 0:00 sshd: user [priv]

user 24553 0.0 0.1 8712 2308 ? S 20:07 0:00 sshd: user@pts/0

user 24554 0.2 0.0 2344 1316 pts/0 Ss 20:07 0:00 -bash

刚刚装拉RHEL5β2版本

发现这个版本地ps和top里面是有Ss地

man拉一下 ps和top

解释如下

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。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值