linux,进程,文件句柄

852阅读 0评论2008-12-13 ygl23
分类:

ps -ef|grep httpd   #得到进程编号
 
ls -l /proc/process number/fd |grep socket: |wc -l #得到httpd已经打开的文件句柄
 
或者
 
lsof -p process number | wc -l   #得到httpd已经打开的文件句柄
 
 
上一篇:mii-tool,linux,设置网卡工作模式,
下一篇:linux,合并,网卡,带宽