| 1 | .\" Copyright (c) 1990 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)pwd.1 6.4 (Berkeley) %G% |
| 7 | .\" |
| 8 | .Vx |
| 9 | .Vx |
| 10 | .Dd |
| 11 | .Dt PWD 1 |
| 12 | .Os BSD 4 |
| 13 | .Sh NAME |
| 14 | .Nm pwd |
| 15 | .Nd return working directory name |
| 16 | .Sh SYNOPSIS |
| 17 | .Nm pwd |
| 18 | .Sh DESCRIPTION |
| 19 | .Nm Pwd |
| 20 | writes the absolute pathname of the current working directory to |
| 21 | the standard output. |
| 22 | .Pp |
| 23 | The pwd utility exits 0 on success, and >0 if an error occurs. |
| 24 | .Sh STANDARDS |
| 25 | The pwd function is expected to be POSIX 1003.2 compatible |
| 26 | .Sh SEE ALSO |
| 27 | .Xr cd 1 , |
| 28 | .Xr csh 1 , |
| 29 | .Xr getwd 3 |
| 30 | .Sh BUGS |
| 31 | In |
| 32 | .Xr csh 1 |
| 33 | the command |
| 34 | .Ic dirs |
| 35 | is always faster (although it can give a different answer in the rare case |
| 36 | that the current directory or a containing directory was moved after |
| 37 | the shell descended into it). |