Print the current working directory.
pwdPrint the full path of your current working directory.
pwd [-L | -P]Print the current working directory.
pwdPrint the physical path after resolving symbolic links.
pwd -P| Option / clause | Description |
|---|---|
-L | Show the logical path, including symbolic links (default). |
-P | Resolve symbolic links and show the physical path. |
--help | Display help (GNU Bash/Coreutils variants). |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.