you can change to the last used directory by

cd -

# example
cd; # go to home directory
cd /; # go to root directory
cd -; # again back to home directory
cd -; # again in root directory

holy GNU cow

admin