-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,253 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: hexdump | ||
--- | ||
|
||
# hexdump | ||
|
||
- 参考 | ||
- wikipedia [Hex dump](https://en.wikipedia.org/wiki/Hex_dump) | ||
|
||
**Chrome Websocket binary dump** | ||
|
||
``` | ||
00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | ||
``` | ||
|
||
**hexdump -C** | ||
|
||
```bash | ||
echo -n 0123456789ABCDEF | hexdump -C | ||
``` | ||
|
||
``` | ||
00000000 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 |0123456789ABCDEF| | ||
``` | ||
|
||
| hexdump | for | | ||
| -------------- | ---------------- | | ||
| -b | 1 字节 | | ||
| -c | 1 字符 | | ||
| -d | 2 字节 | | ||
| -o | 2 八进制 | | ||
| -x | 2 十六进制 | | ||
| `-C` | 显示 ASCII | | ||
| `-c` | 显示 ASCII 字符 | | ||
| -n LENGTH | 显示字节数 | | ||
| -s OFFSET | 跳过字节数 | | ||
| `-v` | 不显示重复行 | | ||
| -e FORMAT | 格式化输出 | | ||
| -f FORMAT_FILE | 从文件读取格式化 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.