PWD(1) General Commands Manual PWD(1)

pwdprint working directory

pwd [-L|-P]

pwd prints the full path of the current working directory.

(default) Use the PWD environment variable if it contains an absolute pathname of the current directory, and doesn't contains dot or dot-dot components.
Writes current directory, without any components referring to a symbolic link.

If both -L and -P are passed, the last one applies.

The pwd utility exits 0 on success, and >0 if an error occurs.

getcwd(3)

pwd should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

November 9, 2024 Linux