Linux中的strings
命令主要用于从二进制文件中提取可打印的字符串
- ASCII
- UTF-8
- UTF-16LE (Little Endian)
- UTF-16BE (Big Endian)
- UTF-32LE (Little Endian)
- UTF-32BE (Big Endian)
- GBK
- GB2312
- ISO-8859-1 (Latin-1)
- ISO-8859-2 (Latin-2)
- ISO-8859-3 (Latin-3)
- ISO-8859-4 (Latin-4)
- ISO-8859-5 (Cyrillic)
- ISO-8859-6 (Arabic)
- ISO-8859-7 (Greek)
- ISO-8859-8 (Hebrew)
- ISO-8859-9 (Turkish)
- ISO-8859-10 (Nordic)
- ISO-8859-11 (Thai)
- ISO-8859-13 (Baltic)
- ISO-8859-14 (Celtic)
- ISO-8859-15 (Latin-9)
- Windows-1252 (Microsoft Western)
- Windows-1251 (Microsoft Eastern)
- Windows-1256 (Microsoft Arabic)
- Windows-1257 (Microsoft Baltic)
注意,strings
命令可能无法识别所有这些编码格式,具体取决于系统和文件内容。在某些情况下,您可能需要使用其他工具(如iconv
或file
命令)来确定文件的编码格式。