160687Sbostic.\" Copyright (c) 1990, 1993 260687Sbostic.\" The Regents of the University of California. All rights reserved. 319270Smckusick.\" 450203Sbostic.\" This code is derived from software contributed to Berkeley by 550203Sbostic.\" the Institute of Electrical and Electronics Engineers, Inc. 650203Sbostic.\" 750470Scael.\" %sccs.include.redist.roff% 819270Smckusick.\" 9*68984Sbostic.\" @(#)pwd.1 8.2 (Berkeley) 04/28/95 1043083Scael.\" 1143083Scael.Dd 1243083Scael.Dt PWD 1 1343083Scael.Os BSD 4 1443083Scael.Sh NAME 1543083Scael.Nm pwd 1643083Scael.Nd return working directory name 1743083Scael.Sh SYNOPSIS 1843083Scael.Nm pwd 1943083Scael.Sh DESCRIPTION 2043083Scael.Nm Pwd 2143083Scaelwrites the absolute pathname of the current working directory to 2243083Scaelthe standard output. 2343083Scael.Pp 2443083ScaelThe pwd utility exits 0 on success, and >0 if an error occurs. 2543083Scael.Sh STANDARDS 2650470ScaelThe 2750470Scael.Nm pwd 2850470Scaelcommand is expected to be 2950470Scael.St -p1003.2 3050470Scaelcompatible . 3143083Scael.Sh SEE ALSO 3243083Scael.Xr cd 1 , 3343083Scael.Xr csh 1 , 34*68984Sbostic.Xr getcwd 3 3543083Scael.Sh BUGS 3619270SmckusickIn 3743083Scael.Xr csh 1 3819270Smckusickthe command 3943083Scael.Ic dirs 4019270Smckusickis always faster (although it can give a different answer in the rare case 4119270Smckusickthat the current directory or a containing directory was moved after 4219270Smckusickthe shell descended into it). 43