1、查看二进制文件-
hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]
参数 | 描叙 |
-b | 每个字节显示为8进制。一行共16个字节,一行开始以十六进制显示偏移值 |
-c | 每个字节显示为ASCII字符 |
-C | 每个字节显示为16进制和相应的ASCII字符 |
-d | 两个字节显示为10进制 |
-e | 格式化输出 |
-f | Specify a file that contains one or more newline separated format strings. Empty lines and lines whose first non-blank character is a hash mark (#) are ignored. |
-n | 只格式前n个长度的字符 |
-o | 两个字节显示为8进制 |
-s | 从偏移量开始输出 |
-v | The -v option causes hexdump to display all input data. Without the -v option, any number of groups of output lines, which would be identical to the immediately preceding group of output lines |
-x | 双字节十六进制显示 |
2、