Suppose I have a link that points to another link that points to another link, etc. way down the line. I'm not sure how many levels of links there are. What's the slick command line way to see the ultimate target of all these links?
|
feedback
|
|
Some versions of | |||
|
feedback
|
|
Maybe it's not the best solution, it depends of your needs. You can retrieve the inode of the end of the chain with:
and if you need the path of those files (more than one if the ends of the chain are hard-linked each other) too:
Ok, there's a smarter solution:
| ||||
|
feedback
|
|
See my answers here and here for small functions that you can use as starting points to accomplish what you want if you want to see all the intermediate links. | |||
|
feedback
|
|
Take a look at this perl script, I think it's what you're looking for. | |||
|
feedback
|