Skip to content
masterclass Buddy

Linux & Shell · Command

pwd

pwd prints the absolute path of the current working directory. Use -L for the logical PWD path or -P to resolve symbolic links; the GNU utility uses -P by default.

Last updated

Syntax

pwd [OPTION]...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • getcwd(3)
  • cd
  • PWD
  • OLDPWD

Source: pwd(1) - Linux manual page. Checked 2026-11-03.