pwd

Updated: April 19, 2023

Print working directory name (POSIX)

Syntax:

pwd

Runs on:

QNX Neutrino, Microsoft Windows

Options:

None.

Description:

The pwd utility writes the pathname of the current working directory to the standard output.

The pwd command is available both as a shell alias (equivalent to print "$PWD"), and as a standalone utility. For information about the builtin cd and pwd commands, see ksh. To make sure you use the executable, specify the full path.

Exit status:

0
Successful completion.
>0
An error occurred.