TODO: <Insert clever marketing phrase here>
Use the -P option to tell cd to change directory to the physical directory where the symbolic link is pointing.
target directory: /mydata/apps/tools/myconfig home directory with symbolic link: /home/user/myconfig -> /mydata/apps/tools/myconfig
cd ~ cd myconfig # pwd displays /home/user/myconfig cd ~ cd -P myconfig # pwd displays /mydata/apps/tools/myconfig
I know of two ways you can make the cd command change to the physical directory.
create a command alias: alias cd='cd -P'
set -o physical
This is how I did it. My distro is Ubuntu. I added an alias to ~/.bashrc