1. 可以按字符遍历字符串,用printf("%x", *str)打印出16进制。


2. hexdump -C file | less


3. vim -b file, 然后:%!xxd


待完善。

Logo

更多推荐