O comando para seguir cadeias de links é denominado namei
ManPage Exemplos:
$ touch a
$ ln -s a b
$ ln -s b c
$ ln -s c d
$ namei ./d
f: ./d
d .
l d -> c
l c -> b
l b -> a
- a
$ namei /usr/bin/java
f: /usr/bin/java
d /
d usr
d bin
l java -> /etc/alternatives/java
d /
d etc
d alternatives
l java -> /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
d /
d usr
d lib
d jvm
d java-7-openjdk-i386
d jre
d bin
- java