pushd

Push a directory onto the stack and cd

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Remember the current directory and switch to another; popd returns.

Examples
pushd /var/logGo to /var/log and remember where you were · explain & risk-check →
popdReturn to the previous directory · explain & risk-check →
Related
popd dirs cd
Open the full explainer →More in Files & Archives

Reference text is hand-written and may be incomplete — check man pushd for your version. Test destructive commands on a non-production system first.