查看Linux某个进程的环境变量

0
分享 2023-12-26
如何查看linux某个进程的所生效的环境变量

1. 查找到该进程的进程号

2. cd 到/proc/pid

3.  cat -e environ |sed 's/\^@/\n/g'

0 个评论

要回复文章请先登录注册