iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🐥

pwd command options for displaying the current directory's full path

に公開

A quick note because I always forget the -P option.

The pwd command stands for "Print working directory."
Since I customize my shell display, I find myself using it quite often...

Command Effect
pwd Displays the full path of the current directory
pwd -L logical. *Follows symbolic links.
pwd -P physical. *Does not follow symbolic links.

References:

Discussion