Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
69f0efa6 | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
69f0efa6 | 5 | .\" |
d0719240 | 6 | .\" @(#)pwd.1 6.4 (Berkeley) %G% |
b5dc1377 | 7 | .\" |
ee9b0a0a CL |
8 | .Vx |
9 | .Vx | |
b5dc1377 CL |
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 | |
69f0efa6 | 31 | In |
b5dc1377 | 32 | .Xr csh 1 |
69f0efa6 | 33 | the command |
b5dc1377 | 34 | .Ic dirs |
69f0efa6 KM |
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). |