简体   繁体   中英

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

在Linux上,这可以解决问题:

readlink -f A

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM