Here's a more comfortable way if you want use the cd commands to certain directories more often. It avoids writing the directory name every time.
In your .bashrc or .profile, insert:
# activate cdable_vars
shopt -s cdable_vars
# define shortcut for your directory, here DIR
Execute your script once:
Then you can cd to your directory like this:
This should work even if the path contains spaces.
In shell scripting, however, you must quote the variable like this: