Skip to main content

You can use

cd - 

or you could use

cd "$OLDPWD" 

cd $OLDPWD causes the error: bash: cd: too many arguments in paths with spaces.

Raphael Ahrens
  • 9.9k
  • 5
  • 39
  • 53