pwdArguments explained
- No required arguments. -P can show the physical path without symlink shortcuts in many shells.
Common examples
pwdPrints a path such as /home/alex/projects.
current_dir=$(pwd)Stores the current directory path in a shell variable.
| Field | Details |
|---|---|
| Command | pwd |
| Category | Navigation |
| Primary use | Prints the current working directory. |
| Syntax | pwd |