xref: /original-bsd/bin/pwd/pwd.1 (revision 00695d63)
1.\" Copyright (c) 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\"	%sccs.include.redist.roff%
8.\"
9.\"     @(#)pwd.1	8.2 (Berkeley) 04/28/95
10.\"
11.Dd
12.Dt PWD 1
13.Os BSD 4
14.Sh NAME
15.Nm pwd
16.Nd return working directory name
17.Sh SYNOPSIS
18.Nm pwd
19.Sh DESCRIPTION
20.Nm Pwd
21writes the absolute pathname of the current working directory to
22the standard output.
23.Pp
24The pwd utility exits 0 on success, and >0 if an error occurs.
25.Sh STANDARDS
26The
27.Nm pwd
28command is expected to be
29.St -p1003.2
30compatible .
31.Sh SEE ALSO
32.Xr cd 1 ,
33.Xr csh 1 ,
34.Xr getcwd 3
35.Sh BUGS
36In
37.Xr csh  1
38the command
39.Ic dirs
40is always faster (although it can give a different answer in the rare case
41that the current directory or a containing directory was moved after
42the shell descended into it).
43