← 返回命令列表

Linux command

hevi 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

View a file

hevi [path/to/file]

Read from stdin

cat [path/to/file] | hevi

Disable colored output

hevi --no-color [path/to/file]

Use uppercase hex digits

hevi --uppercase [path/to/file]

Force a specific parser

hevi --parser [elf] [path/to/file]

Raw mode

hevi --raw [path/to/file]

Show the active color palette

hevi --show-palette

说明

hevi (pronounced like "heavy") is a hex viewer similar to xxd or hexdump, with the added ability to parse structured file formats like ELF and PE executables and provide syntax highlighting for recognized sections. This makes it easier to visually identify headers, sections, and data regions in binary files. Custom color palettes can be specified using standard ANSI colors or truecolor. The viewer displays offset addresses, hexadecimal values, and ASCII representation in a clean, colored layout. Behavior can be controlled via flags, a config file, or environment variables (including NO_COLOR), with flags taking precedence.

参数

-h, --help
Show help
-v, --version
Print version
--color, --no-color
Enable or disable colored output
--lowercase, --uppercase
Choose the case of hex digits
--size, --no-size
Show or hide the size column
--offset, --no-offset
Show or hide the offset column
--ascii, --no-ascii
Show or hide the ASCII representation
--skip-lines, --no-skip-lines
Collapse or keep repeated identical lines
--raw
Raw output, disabling most decorations
--parser _NAME_
Force the specified file-format parser (e.g. elf, pe)
--show-palette
Print the active color palette and exit

FAQ

What is the hevi command used for?

hevi (pronounced like "heavy") is a hex viewer similar to xxd or hexdump, with the added ability to parse structured file formats like ELF and PE executables and provide syntax highlighting for recognized sections. This makes it easier to visually identify headers, sections, and data regions in binary files. Custom color palettes can be specified using standard ANSI colors or truecolor. The viewer displays offset addresses, hexadecimal values, and ASCII representation in a clean, colored layout. Behavior can be controlled via flags, a config file, or environment variables (including NO_COLOR), with flags taking precedence.

How do I run a basic hevi example?

Run `hevi [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in hevi?

Show help