[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

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 5L Version 5.2 System User's Guide: Operating System and Devices.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]