Is there a way to create a link in unix that actually go to where the target is?
$ cd ~/foo-link
$ pwd
/some/other/directory/foo
Or something similar. What I'm trying to solve is that there are some deep paths we often have to go to for doing stuff and I'd like an easy way to go there without having to remember the whole path. Don't want to use a symbolic/ link cause I want to actually end up in that long path.
My concern about using symbolic links is that we have to run some old scripts in these directories and I don't trust them to handle themselves correctly if located "in" a symbolic path. Of course I could be misunderstanding how symbolic links work in unix though...
.bashrc
snippet that will callcd
ifpwd
is the short path?$ cd $(readlink ~/foo-link)
?