test.log是utf-16的编码 cat test.log会报错 但是我们可以cat的时候指定编码格式 iconv -f 文件编码 -t 终端编码 input.log iconv -f utf-16 -t utf-8 test.log 来源:https://www.cnblogs.com/ruiy/p/11717780.html 标签 cat linux系统 utf-16