What is the pwd command in Linux?
Print Working Directory is abbreviated as pwd. The command outputs the current working directory’s path, starting from the root.
Syntax
pwd [OPTIONS]
Below are some of the options that can be used.
| Option | Description |
|---|---|
-L |
Displays the symbolic path |
-P |
Displays the actual path |
Code
pwdpwd -P