/proc/self
时间: 2023-09-02 19:13:01 浏览: 143
/proc/self表示当前进程目录。它是一个特殊的子目录,用于进程索引自身的进程信息。通过/proc/self,进程可以直接访问自己的进程信息,无需获取进程号。等效于直接用进程号访问/proc/$this-pid。每个进程访问/proc/self时,内容都不相同。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [『Linux』进程信息目录/proc](https://blog.csdn.net/Xxy605/article/details/120251389)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [/proc/self/](https://blog.csdn.net/m0_62170081/article/details/129097639)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文