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