hexdump
hexdump是Linux下的一个二进制文件查看工具,它可以将二进制文件转换为ASCII、八进制、十进制、十六进制格式进行查看。
指令所在路径:/usr/bin/hexdump
命令语法:
hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]
命令参数:
此命令参数是Red Hat Enterprise Linux Server release 5.7下hexdump命令参数,不同版本Linux的hexdump命令参数有可能不同。
参数 | 长参数 | 描叙 |
---|---|---|
-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 | 双字节十六进制显示 |