In Linux, suppose you have a symlink at /foo/bar
that points at directory /foo/baz
.
Case 1: If you do 'cd /foo/bar'
, you’ll be in /foo/bar/baz
.
Case 2: If you do 'cd -P /foo/bar'
you’ll be in /foo/baz
. (this is like a Windows Shortcut)
Question: Is there a way to create a symlink (or something similar to a symlink) that behaves like “cd -P”, so I can have some links that behave per Case 1, and others that behave per Case 2?