pwd

Updated: October 28, 2024

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.

Note: QNX Neutrino also supports a toybox version of this utility. For more information, go to the toybox entry of this reference.

Exit status:

0
Successful completion.
>0
An error occurred.