When I use "lynx" via the terminal I believe it is using an symbolic link, but my Google searches have failed to show me how to determine the symbolic path value.
当我通过终端使用“lynx”时,我相信它正在使用符号链接,但我的Google搜索未能告诉我如何确定符号路径值。
That is, I would like to determine the symbolic link value for "lynx", and a few others, e.g. wget, etc.
也就是说,我想确定“lynx”的符号链接值,以及其他几个,例如: wget等
Thanks for any insights and suggestions.
感谢您的任何见解和建议。
P.S. I am using the terminal on a Mac machine.
附:我在Mac机器上使用终端。
2 个解决方案
#1
Try:
readlink `which lynx`
which
does not follow symbolic links. Instead, it gets only to the symbolic link which got executed. readlink
can then follow this symbolic link to the original binary/executable.
它不遵循符号链接。相反,它只获得执行的符号链接。然后,readlink可以跟随此符号链接到原始二进制文件/可执行文件。
#2
Also:
ls -l `which lynx`
which will exhibit the linked path (at least on some ls
s).
它将展示链接路径(至少在某些lss上)。
#1
Try:
readlink `which lynx`
which
does not follow symbolic links. Instead, it gets only to the symbolic link which got executed. readlink
can then follow this symbolic link to the original binary/executable.
它不遵循符号链接。相反,它只获得执行的符号链接。然后,readlink可以跟随此符号链接到原始二进制文件/可执行文件。
#2
Also:
ls -l `which lynx`
which will exhibit the linked path (at least on some ls
s).
它将展示链接路径(至少在某些lss上)。