I'm in directory ~/a which is a symbolic link to ~/b/c. My prompt looks like:
~/a$
But I hope to cd to ~/b/c.
~/a$ cd .
~/a$
It doesn't work. What's the right way?
|
I'm in directory
But I hope to
It doesn't work. What's the right way? |
|||
|
|
|
Here is a way of changing to the target of the given symbolic link:
Here is how it works
You can alias it to
From the bash manual:
|
|||||
|
|
If you are simply trying to get to the other directory, then the solution is to enter it manually (otherwise the system will not follow the link back to its source). Example:
You can assign an alias for this using:
(The above is an example, and you can of course substitute values as needed). |
|||
|
|