Locate your current working directory instantly and avoid costly navigation mistakes. 24.04.2026 | reading time: 2 min Lost in a shell session? On the command line, pwd prints the absolute path of the current working directory so the sysadmin always knows where he stands; tiny, fast, and indispensable for safe navigation. See it live Example session:```sh\n$ cd /etc\n$ pwd\n/etc\n``` This concrete output shows that after changing into /etc the command returns the absolute path, leaving no doubt about the current location. Physical versus logical paths pwd supports two behaviors: logical and physical; use pwd -L to show the path as the shell records it and pwd -P to resolve symlinks to the physical directory, which matters when he debugs scripts that must avoid symbolic links. Where pwd hides and why it matters Many shells provide pwd as a builtin while systems also have /bin/pwd; the shell builtin often tracks the PWD environment variable and can differ from the external utility when symlinks are involved, so check type pwd when behavior surprises you. Next steps Master this small command and combine it with safe cd usage to move through filesystems confidently; if you want a structured path, consider exam-oriented study for CompTIA Linux+ or LPIC-1 and intensive preparation at bitsandbytes.academy to turn these habits into certified skills. Join Bits & Bytes Academy First class LINUX exam preparation. filesystem utilities scripting troubleshooting