Linux字符串转16进制

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

2. hexdump -C file | less

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

原文地址:https://www.cnblogs.com/liyuxia713/p/2540710.html