xref: /original-bsd/bin/pwd/pwd.1 (revision f91c1509)
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) 03/14/91
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
20writes the absolute pathname of the current working directory to
21the standard output.
22.Pp
23The pwd utility exits 0 on success, and >0 if an error occurs.
24.Sh STANDARDS
25The 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
31In
32.Xr csh  1
33the command
34.Ic dirs
35is always faster (although it can give a different answer in the rare case
36that the current directory or a containing directory was moved after
37the shell descended into it).
38