pwd

The command that prints the full path of the current working directory.

In more detail

Its name stands for print working directory, and it shows exactly where relative paths will be looked up. Bash keeps the answer in the PWD variable too, which is how prompts show your location without running a command. In Windows Command Prompt, cd with no argument does the same job.

Related terms

Taught in

References

Certification courses