Quantcast
Channel: Linux symbolic links: how to go to the pointed to directory? - Super User
Viewing all articles
Browse latest Browse all 4

Answer by xenoid for Linux symbolic links: how to go to the pointed to directory?

$
0
0

Use readlink to resolve the link to its target:

cd $(readlink thelink)

You may want to define a function in your bash profile:

function cdl { local dir=$(readlink -e $1); [[ -n "$dir" ]] && cd $dir; }

Viewing all articles
Browse latest Browse all 4

Trending Articles