Navigation

The pwd command

Prints the full path of the folder you are in. It is your reference when you get lost.

Syntax

pwd

Most useful options

-PShows the physical path, without symbolic links

Copy-ready examples

$ pwdWhere am I?
$ cd Documentos && pwdMove and confirm

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • pwd shows the logical path: if you entered through a link, you see the link.

Related commands

FAQ

Does pwd change folder?

No: it only reports. You use cd to move.

What does the leading slash mean?

That the path is absolute: it starts at the system root.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course