linux 查看进程的程序绝对路径

版权声明:博客地址:blog.csdn.net/x356982611,未经允许不得转载,不得转载,不得转载 https://blog.csdn.net/x356982611/article/details/80802221

简介

ps和htop等工具只能查看到程序的相对路径,通过下面的/proc/pid/exe可以看到绝对路径,因为exe是程序的一个软连接

ps -ef |grep client | awk '{print $2}'
ls -l /proc/1046/exe

这里写图片描述

猜你喜欢

转载自blog.csdn.net/x356982611/article/details/80802221
今日推荐