DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

pwd(C)


pwd -- print working directory name

Syntax

pwd

Description

pwd prints the absolute pathname of the current working directory. cd(C) sets the environment variable PWD to this pathname.

Exit values

pwd returns the following values:

0
successful completion

>0
an error occurred

Diagnostics

``Cannot open ...'' and ``Read error in ...'' indicate possible file system trouble. In such cases, see ``Checking and repairing filesystems'' in the SCO OpenServer System Administration Guide for information about fixing the filesystem.

Limitations

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 ksh(C) is to show logical pathnames. The default behavior for csh(C) and sh(C) 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 hierarchy(M)). 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.

Files


/bin/pwd
standalone version of pwd

See also

cd(C), csh(C), ksh(C), sh(C)

Standards conformance

pwd is conformant with:

ISO/IEC DIS 9945-2:1992, Information technology - Portable Operating System Interface (POSIX) - Part 2: Shell and Utilities (IEEE Std 1003.2-1992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003