pwd

Print your current location in the filesystem

pwd (Print Working Directory) outputs the absolute path of the directory you are currently in. It's the first command to run when you SSH into an unfamiliar server. Unlike your shell prompt, pwd always gives you the full unambiguous path. No aliases, no symlinks resolved differently.

Example

$ pwd
/home/ubuntu
Tip: Type it yourself in the terminal below - reading is not the same as doing.