OpenBSD manual page server

Manual Page Search Parameters

PWD(1) General Commands Manual PWD(1)

pwdreturn working directory name

pwd

The pwd utility prints the absolute pathname of the current working directory to the standard output. For an explanation of the directory hierarchy, see hier(7).

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

ksh(1), getcwd(3), hier(7)

The pwd utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.

pwd also exists as a built-in to ksh(1), though with a different syntax.

In csh(1), the command dirs is always faster (although it can give a different answer in the rare case that the current directory or a containing directory was moved after the shell descended into it).

September 3, 2010 OpenBSD-5.5