pwd

Official Description

Displays the pathname of the current working directory.

Syntax

pwd

Options

None

Oddities

Equivalent to print -r - $PWD.

Example

$ pwd
/home/obrien
$
$ print -r - $PWD
/home/obrien
$
				

Get Korn Shell Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.