Using this answer, I have created a symbolic link in my
.bashrc file to make changing to a frequently used directory easier.
ln -s ~/a/b/c/d/development dev
I can change directory from my
home dir to the
development dir by entering
cd dev. I can also enter
ls dev from my
home dir and that works too.
However, these commands only work in my
home dir. If I enter them from anywhere else I get an error telling me
No such file or directory.
If I enter
cd ~/dev or
ls ~/dev it works.
Can someone explain why that is and how I can fix it so I don't have to include
~/ in the path when I'm not in my home dir.