On a UNIX machine I in my current directory I create a symbolic link:
> ln -s public_html/code/index.html
Which creates a file locally named index.html. How can cd to the directory public_html/code from the soft link file?
|
On a UNIX machine I in my current directory I create a symbolic link:
Which creates a file locally named
| |||||
feedback
|
|
In a
you can put it in a function:
function cdl
{
cd $(dirname $(readlink -f "$1"))
}
| |||
feedback
|
|
This would work.
This needs to be a function, not a script. Put in your .bashrc, .kshrc, etc. | |||
|
feedback
|