Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
/proc/pid/environ如果进程修改了其环境,是否可以从文件中获取相关信息?我的测试表明setenv/putenv/clearenv不更新environ文件。但是,bash可以调用unset ENV并查看 procfs 的变化。
/proc/pid/environ
setenv/putenv/clearenv
environ
bash
unset ENV