瀏覽代碼

fixed 'readlink -f ...' one-liner

- signed-off-by: trimstray <trimstray@gmail.com>
pull/82/head
trimstray 5 年之前
父節點
當前提交
6c13f0fc5e
共有 1 個檔案被更改,包括 7 行新增4 行删除
  1. +7
    -4
      README.md

+ 7
- 4
README.md 查看文件

@@ -2005,12 +2005,15 @@ exec /sbin/init 6
exec /sbin/init
```

###### Get the path of a process
###### Show the PID's current working directory

```bash
readlink -f /proc/<PID>/cwd
```

###### Show actual pathname of the executed command

```bash
# Alternatives:
# - pwdx command
# - lsof command
readlink -f /proc/<PID>/exe
```



Loading…
取消
儲存