查找运行程序的路径

ps aux
root      6348 34.5  0.3 100468  8064 ?        R    Aug15 4356:08 /usr/local/ruby/bin/ruby /usr/local/ruby/bin/juggernaut -c juggernaut.yml -d

查看方法ls -l /proc/{pid}/exe

ls -l /proc/6348/exe
lrwxrwxrwx 1 root root 0 08-24 10:30 /proc/6348/exe -> /usr/local/ruby/bin/ruby

相关推荐