tldr/pages.zh/osx/hexdump.md

16 lines
378 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# hexdump
> 一个ASCII、十进制、十六进制、八进制转换查看工具.
- 打印文件的十六进制表示形式:
`hexdump {{文件}}`
- 以十六进制显示输入偏移量并在最后两列中显示其ASCII表示形式:
`hexdump -C {{文件}}`
- 显示文件的十六进制表示但只解释输入的N个字节:
`hexdump -C -n{{字节数}} {{文件}}`