strings 命令在 Linux 中用于显示文件中的可打印字符串
如果你想查看符号链接指向的文件中的可打印字符串,你可以使用 -f 或 --files-with-names 选项。这个选项会让 strings 命令处理符号链接指向的文件,而不是符号链接本身。
例如,假设你有一个名为 link_to_file.txt 的符号链接,它指向名为 target_file.txt 的文件。要查看 target_file.txt 中的可打印字符串,你可以运行以下命令:
strings -f link_to_file.txt
这将显示 target_file.txt 中的可打印字符串,而不是 link_to_file.txt 的内容。