[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

pwd Command

Purpose

Displays the path name of the working directory.

Syntax

pwd

Description

The pwd command writes to standard output the full path name of your current directory (from the root directory). All directories are separated by a / (slash). The root directory is represented by the first /, and the last directory named is your current directory.

Exit Status

This command returns the following exit values:

0 Successful completion.
>0 An error occurred.

Examples

Entering:

pwd

displays the current directory as:

/home/thomas

Files

/usr/bin/pwd Contains the pwd command.

Related Information

The cd command.

The getcwd subroutine.

Directory Overview in AIX Version 4.3 System User's Guide: Operating System and Devices.


[ Previous | Next | Contents | Glossary | Home | Search ]