Print Working Directory - the absolute pathname of the current folder (i.e. it tells you where you are).

      pwd [-LP]

   -P   The pathname printed contains no symbolic links

   -L   The pathname printed can contain symbolic links.

Enabling the -o physical option for the set builtin command is equivalent to -P.

The return status is 0 unless an error occurs while reading the name of the current directory or an invalid option is supplied.

Some shells provide a builtin pwd command which is similar or identical to this utility.

“Take care of your body. It's the only place you have to live” ~ Jim Rohn

Related macOS commands

cd - Change Directory.

Copyright © 1999-2024
Some rights reserved