Extract target of alias from Terminal
To enable cd'ing into an Folder Alias I've found the following at Mac OS X Hints. Don't know if it still works.


  Here is the bash function I include in .bashrc. Note that the second elif       requires double brackets for the test, because it include the logical operator     or (||):


function cd {
  if [ ${#1} == 0 ]; then
    builtin cd
  elif [ -d "${1}" ]; then
    builtin cd "${1}"
  elif [[ -f "${1}" || -L "${1}" ]]; then
    path=$(getTrueName "$1")
    builtin cd "$path"
  else
    builtin cd "${1}"
  fi
}



  And here's the C source code for getTrueName. 


A similar approach is available at superuser.com