Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我通过终端使用“lynx”时,我相信它使用的是符号链接,但我的 Google 搜索未能告诉我如何确定符号路径值。
也就是说,我想确定“lynx”的符号链接值,以及其他一些值,例如 wget 等。
感谢您的任何见解和建议。
PS我在Mac机器上使用终端。
尝试:
readlink `which lynx`
which不遵循符号链接。相反,它只到达被执行的符号链接。readlink然后可以按照这个符号链接到原始的二进制/可执行文件。
which
readlink
还:
ls -l `which lynx`
这将显示链接路径(至少在某些lss 上)。
ls