1. 把文件按二进制格式输出 xxd -p ConfigStore2Body.dat xxd -p file Or if you want it all on a single line: xxd -p file | tr -d '\n'