码迷,mamicode.com
首页 > 系统相关 > 详细

根据进程号查找路径

时间:2015-10-29 18:26:10      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:pwdx

1、根据进程名称查出进程id

    pidof 程序名称

2、根据进程id查出该进程所在路径

    pwdx 进程id


eg:

pidof nginx

4161 3528 3527 3526 3525 3524 3523 3522 3521 3520

pwdx 4161

4161: /usr/local/services/nginx-1.6.2/sbin


根据进程号查找路径

标签:pwdx

原文地址:http://leyin01.blog.51cto.com/9062123/1707839

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!