print working directory name
pwd prints the absolute pathname of the current working
sets the environment variable PWD to this pathname.
pwd returns the following values:
an error occurred
Cannot open ...'' and ``
in ...'' indicate possible file system trouble. In such cases,
``Checking and repairing filesystems''
in the SCO OpenServer System Administration Guide
for information about fixing the filesystem.
The version of pwd built into the Bourne, C, and
Korn shells supports the -L and -P flags for
printing logical or physical paths. The default behavior for
is to show logical pathnames. The default behavior for
is to show physical pathnames.
Software storage objects (SSOs) preserve the traditional
directory structure and filenames by using symbolic links to point
to the real files which are maintained in the /var and
/opt/var directory hierarchies (see
Using the -L option to the version of pwd built
into the Bourne and C shells allows you to display the
traditional directory structure while hiding the details of the
implementation of SSOs.
standalone version of pwd
pwd is conformant with:
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.
A version of pwd
that can handle files greater than 2GB
is available in /u95/bin. See
for more information.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005