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、