xxd [options] [infile [outfile]]

 
-b | -bits :以bit 输出
-c cols | -cols cols:每行显示的列数
-g bytes | -groupsize bytes:显示时用空格以bytes字节分割显示
 -l len | -len len:读取长度
-seek offset :seek到offset位置
 
利用xxd 和head和tail以16进制查看二进制文件很方便。