当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: /proc/<pid>/stat各个字段的描述 I
 

 

 ·变量的进阶设定    »显示摘要«
    摘要:变量  为user 和  result法一: result=$hackobe@0[hackobe]$ user=hackobehackobe@0[hackobe]$ result=$hackobe@0[hackobe]$ echo $userhackobehackobe@0[hackobe]$ echo $resulthackobehackobe@0[hackobe]$ unset userhackobe@0[hackobe]$ res......
 ·shell中有关字符串的处理    »显示摘要«
    摘要:得到长度 代码: %x="abcd" #方法一 %expr length $x 4 # 方法二 %echo $ 4 # 方法三 %expr "$x" : ".*" 4 # expr 的帮助 # string : regexp   anchored pattern match of reg......


/proc/<pid>/stat各个字段的描述
/proc/<pid>/stat各个字段的描述

【相关文章:os术语表...........

【扩展阅读:三言两语 说 VI编辑器

is there a pgm that will interpret all the fields that are printed by 【扩展信息:Linux 创建和使用库:静态、共享和动

cat /proc/pid/stat ( or statm, or any of the info on a per process basis

)

see if the following simple function and the associated structure

that i put together sometime ago while checking out some threads-

related stuff on linux/alpha is of use. also note that the format

characters as given in the man page for proc are not all correct

on alpha. i just when to the sources to get them right (rtfs?:-))

typedef struct statstruct_proc {

int pid; /** the process id. **/

char exname [_posix_path_max]; /** the filename of the executable **/

char state; /** 1 **/ /** r is running, s is sleeping,

d is sleeping in an uninterruptible wait,

z is zombie, t is traced or stopped **/

unsigned euid, /** effective user id **/

egid; /** effective group id */

int ppid; /** the pid of the parent. **/

int pgrp; /** the pgrp of the process. **/


...   下一页
 ·linux中设置ip    »显示摘要«
    摘要:一些细节,两个命令,查了半天帮助,特记录下来。我的机器在局域网中原来是动态ip . dhcp的。想绑定到一个空闲出来的静态ip 192.168.8.85 。/sbin/ifconfig eth0 192.168.8.85 完了之后,没啥反应。于是决定手动改/etc/sysconfig/network-scripts/ifcfg-eth0 原内容:device=eth0bootproto=dhcphwaddr=00:03:47:2c:d5:40onboot=......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE