Linux Filesystem Cheat Sheet/Print working directory

Show the absolute path of the current directory.

Section: Navigation

Print working directory

bash
bash
pwd
Explanation

Useful for confirming your current location before running destructive commands.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Navigation
Go to home directory
Change to the current user's home directory.
OpenIn sheetbashsame section
Go to parent directory
Move up one directory level.
OpenIn sheetbashsame section
Go to previous directory
Switch back to the last directory you were in.
OpenIn sheetbashsame section
Show directory stack
Display directories stored by pushd/popd.
OpenIn sheetbashsame section
Resolve canonical absolute path
Normalize paths and follow symlinks.
OpenIn sheetbash1 tag match
Long listing with human sizes
Show detailed directory contents with human-readable sizes.