bash has a environment variable OLDPWD to keep track you last pwd when you cd directory
eg. when you cd a dir and want to copy a file from your place before cd
cp $OLDPWD/your_file ./
when you finished your work and want to return you last place
cd -