[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    pwd(1) manual page Table of Contents

Name

pwd - return working directory name

Synopsis

/usr/bin/pwd

Availability

SUNWcsu

Description

pwd writes an absolute path name of the current working directory to standard output.

Both the Bourne shell, sh(1) , and the Korn shell, ksh(1) , also have a built-in pwd command.

Environment

See environ(5) for descriptions of the following environment variables that affect the execution of pwd: LC_MESSAGES and NLSPATH .

Exit Status

The following exit values are returned:
  1. Successful completion.
    >0
    An error occurred.

    If an error is detected, output will not be written to standard output, a diagnostic message will be written to standard error, and the exit status will not be 0.

    See Also

    cd(1) , ksh(1) , sh(1) , shell_builtins(1) , environ(5)

    Diagnostics

    ‘‘Cannot open ..’’ and ‘‘Read error in ..’’ indicate possible file system trouble and should be referred to a UNIX system administrator.

    Notes

    If you move the current directory or one above it, pwd may not give the correct response. Use the cd(1) command with a full path name to correct this situation.


    Table of Contents