---
name: "proc_pid_cwd"
section: "5"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/proc_pid_cwd"
---

# proc\_pid\_cwd(5)

symbolic link to current working directory

## NAME

/proc/pid/cwd - symbolic link to current working directory

## DESCRIPTION

- */proc/*pid*/cwd*

  This is a symbolic link to the current working directory of the process. To find out the current working directory of process 20, for instance, you can do this:

-

  ```
  $ cd /proc/20/cwd; pwd -P
  ```

-

  In a multithreaded process, the contents of this symbolic link are not available if the main thread has already terminated (typically by calling [**pthread\_exit**(3)](/pthread_exit/3.md)).

-

  Permission to dereference or read ([**readlink**(2)](/readlink/2.md)) this symbolic link is governed by a ptrace access mode **PTRACE\_MODE\_READ\_FSCREDS** check; see [**ptrace**(2)](/ptrace/2.md).

## SEE ALSO

[**proc**(5)](/proc/5.md)
