Kaunteya
Kaunteya

Reputation: 3090

resolve all symbolic links

I have following structure
A -> B
B -> C
C -> D
D -> E
(A is symlink to B, B is symilnk to C and so on)

Do I any tool in linux which can resolve all the links till the actual file is found.
eg resolve A should directly print E

Upvotes: 3

Views: 1436

Answers (1)

Amadan
Amadan

Reputation: 198436

On Linux, this does the trick:

readlink -f A

Upvotes: 5

Related Questions