前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux 查看进程绝对路径的几种方式

linux 查看进程绝对路径的几种方式

作者头像
葫芦
发布2019-04-17 15:03:56
3.4K0
发布2019-04-17 15:03:56
举报
文章被收录于专栏:葫芦

查看进程绝对路径的几种方式:

pwdx pid

ls -lhrnt /proc/pid

ps -ef | grep tagent

代码语言:javascript
复制
[user00@host ~]$ ps -ef|grep tagent
user00    6801  5473  0 15:32 pts/0    00:00:00 grep --color=auto tagent
user00   44512     1  0 11月10 ?      00:17:04 ./tagent --tlogconf=../cfg/tagent_log.xml --conf-file=../cfg/tagent.xml --log-file=../log/tagent start -D
[user00@host ~]$ ps -ef|grep tagent|grep -v grep
user00   44512     1  0 11月10 ?      00:17:04 ./tagent --tlogconf=../cfg/tagent_log.xml --conf-file=../cfg/tagent.xml --log-file=../log/tagent start -D
[user00@host ~]$ pwdx 44512
44512: /data/home/user00/apps/tagent/bin
[user00@host ~]$ ls -lhrnt /proc/44512
总用量 0
-r--r--r-- 1 30000 100 0 11月 10 21:36 status
-r--r--r-- 1 30000 100 0 11月 10 21:36 stat
-r--r--r-- 1 30000 100 0 11月 10 21:36 cmdline
dr-x------ 2 30000 100 0 11月 10 21:37 fd
-r--r--r-- 1 30000 100 0 11月 10 21:39 smaps
lrwxrwxrwx 1 30000 100 0 11月 10 21:40 exe -> /data/home/user00/apps/tagent/bin/tagent
lrwxrwxrwx 1 30000 100 0 11月 11 05:00 cwd -> /data/home/user00/apps/tagent/bin
-r--r--r-- 1 30000 100 0 11月 11 15:32 wchan
dr-xr-xr-x 7 30000 100 0 11月 11 15:32 task
-r--r--r-- 1 30000 100 0 11月 11 15:32 syscall
-r--r--r-- 1 30000 100 0 11月 11 15:32 statm
-r--r--r-- 1 30000 100 0 11月 11 15:32 stack
-r--r--r-- 1 30000 100 0 11月 11 15:32 sessionid
-rw-r--r-- 1 30000 100 0 11月 11 15:32 sched
lrwxrwxrwx 1 30000 100 0 11月 11 15:32 root -> /
-r--r--r-- 1 30000 100 0 11月 11 15:32 personality
-r--r--r-- 1 30000 100 0 11月 11 15:32 pagemap
-rw-r--r-- 1 30000 100 0 11月 11 15:32 oom_score_adj
-r--r--r-- 1 30000 100 0 11月 11 15:32 oom_score
-rw-r--r-- 1 30000 100 0 11月 11 15:32 oom_adj
-r--r--r-- 1 30000 100 0 11月 11 15:32 numa_maps
dr-x--x--x 2 30000 100 0 11月 11 15:32 ns
dr-xr-xr-x 7 30000 100 0 11月 11 15:32 net
-r-------- 1 30000 100 0 11月 11 15:32 mountstats
-r--r--r-- 1 30000 100 0 11月 11 15:32 mounts
-r--r--r-- 1 30000 100 0 11月 11 15:32 mountinfo
-rw------- 1 30000 100 0 11月 11 15:32 mem
-r--r--r-- 1 30000 100 0 11月 11 15:32 maps
-rw-r--r-- 1 30000 100 0 11月 11 15:32 loginuid
-r--r--r-- 1 30000 100 0 11月 11 15:32 limits
-r--r--r-- 1 30000 100 0 11月 11 15:32 latency
-r-------- 1 30000 100 0 11月 11 15:32 io
dr-x------ 2 30000 100 0 11月 11 15:32 fdinfo
-r-------- 1 30000 100 0 11月 11 15:32 environ
-r--r--r-- 1 30000 100 0 11月 11 15:32 cpuset
-rw-r--r-- 1 30000 100 0 11月 11 15:32 coredump_filter
-rw-r--r-- 1 30000 100 0 11月 11 15:32 comm
--w------- 1 30000 100 0 11月 11 15:32 clear_refs
-r--r--r-- 1 30000 100 0 11月 11 15:32 cgroup
-r-------- 1 30000 100 0 11月 11 15:32 auxv
-rw-r--r-- 1 30000 100 0 11月 11 15:32 autogroup
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016/11/11 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档