Created
December 8, 2016 07:46
-
-
Save an9er/8825e7268604167c7fd7a16bc174e3f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ll-proc-id | |
========== | |
Created 星期一 14 十一月 2016 | |
#### 查看正在运行程序的路径 | |
##### 命令 | |
* ll /proc/PID | |
* ll /proc/PID/cwd | |
##### 参数 | |
* cwd符号链接的是进程运行目录 | |
* exe符号连接就是执行程序的绝对路径 | |
* cmdline就是程序运行时输入的命令行命令 | |
* environ记录了进程运行时的环境变量 | |
* fd目录下是进程打开或使用的文件的符号连接 | |
##### 例图 | |
./pasted_image.png | |
./pasted_image001.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment