pushd /path/to/dir

Category: Navigation & Directory

pushd /path/to/dir

Push current directory to stack and cd to new path

Saves your current location to a stack (like a bookmark), then takes you to the new path. Use popd later to return.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.