功能简述
hexedit – view and edit files in hexadecimal or in ASCII
GitHub – pixel/hexedit: View and edit files in hexadecimal or in ASCII
常用命令
在输出中显示颜色,并且每行仅显示 16 个字节:
# hexedit --color --linelength 16 /path/to/file
语法格式
hexedit [-s | --sector] [-m | --maximize] [-l<n> | --linelength <n>] [-h | --help] [filename]
命令描述
hexedit shows a file both in ASCII and in hexadecimal. The file can be a device as the file is read a piece at a time. You can modify the file and search through it.
命令选项
-s, –sector
格式化显示以具有整个区域。在使用该选项后,以“整屏”为单位进行翻页,而非单行。(请自行尝试,难以描述)
-m, –maximize
尝试最大化显示。
–color
显示颜色。当操作系统支持时,该特性才可用。
-l<n>, –linelength <n>
明确指定每行显示 <n> 字节。
-h, –help
显示帮助信息。
参考文献
man 1 hexedit, Version 1.4.2-5