Use readlink
to resolve the link to its target:
cd $(readlink thelink)
You may want to define a function in your bash profile:
function cdl { local dir=$(readlink -e $1); [[ -n "$dir" ]] && cd $dir; }
Use readlink
to resolve the link to its target:
cd $(readlink thelink)
You may want to define a function in your bash profile:
function cdl { local dir=$(readlink -e $1); [[ -n "$dir" ]] && cd $dir; }