strings
命令用于從二進制文件中提取可打印的字符串
strings
命令提取二進制文件中的可打印字符串。例如,從名為 example.bin
的文件中提取字符串:strings example.bin
sort
命令以對字符串進行排序。例如:strings example.bin | sort
這將按照字母順序對 example.bin
文件中的可打印字符串進行排序并輸出。
如果你想按照其他方式排序,例如忽略大小寫或按照數字順序,可以使用 sort
命令的相應選項。例如:
strings example.bin | sort -f
strings example.bin | sort -n
strings example.bin | sort -r
你可以根據需要組合這些選項以滿足你的排序需求。