Linux / Unix pwd command

Quick links

About pwd
Syntax
Examples
Linux / Unix main page

About pwd

Short for print working directory the pwd command displays the name of the current working directory.

Syntax

pwd

Examples

pwd - Typing pwd at the prompt would give you something similar to:

/home/computerhope/public_html

Users who are familiar with MS-DOS or the Windows command prompt may type cd alone to print the working directory. However, typing cd alone in Linux / Unix will return you to the home directory.

Related commands

cd