From 6c13f0fc5e00a3f85d8957099d54b93f41f4c4ae Mon Sep 17 00:00:00 2001 From: trimstray Date: Mon, 1 Apr 2019 16:12:31 +0200 Subject: [PATCH] fixed 'readlink -f ...' one-liner - signed-off-by: trimstray --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 582ec93..8b71bb1 100644 --- a/README.md +++ b/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//cwd +``` + +###### Show actual pathname of the executed command ```bash -# Alternatives: -# - pwdx command -# - lsof command readlink -f /proc//exe ```