Help Please!! -- need to find command that will switch you back to your previous CWD
Hello. Can anyone tell me what the command is to switch back to your previous current working directory? Any help is greatly appreciated. Thanks!
-- Tron |
cd - # add the dash after a space,
the previous directory is also stored in a variable called OLDPWD so cd $OLDPWD would also work, or you could copy files from your new directory to the old using something like cp filea $OLDPWD |
Thank you!
Yes, exactly what I was look for (cd -).
Thanks alot -- I've got a test tomorrow morning and that question was asked on the study sheet, but I couldn't find it anywhere in my text book, so your help is greatly appreciated. Thanks again. -- Tron |
All times are GMT -5. The time now is 08:34 PM. |