LinuxCommandLibrary

pwd

TLDR

Print working directory

$ pwd
copy
Print physical path (no symlinks)
$ pwd -P
copy
Print logical path (with symlinks)
$ pwd -L
copy

SYNOPSIS

pwd [options]

DESCRIPTION

pwd prints current working directory. Shows absolute path.
The tool displays current location. Essential navigation command.
pwd shows directory.

PARAMETERS

-L

Logical path (follow symlinks).
-P
Physical path (resolve symlinks).

CAVEATS

Shell built-in and external command. Behavior may differ.

HISTORY

pwd is a classic Unix command for directory display.

SEE ALSO

cd(1), dirs(1), basename(1)

Copied to clipboard