← 返回命令列表

Linux command

hexyl 命令

文件

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

常用示例

View file in hex

hexyl [file]

Show specific length

hexyl -n [100] [file]

Skip bytes

hexyl --skip [50] [file]

Show in plain style

hexyl --plain [file]

Read from stdin

cat [file] | hexyl

No character panel

hexyl --no-characters [file]

说明

hexyl is a modern hex viewer for the terminal. It displays file contents with colored output distinguishing different byte types. The tool uses colors to highlight ASCII, non-ASCII, null bytes, and whitespace. It provides a clean, readable hex dump with offset and character views.

参数

-n, --length _N_
Number of bytes to read (supports k, M, G suffixes and hex).
-c, --bytes _N_
Alias for --length.
-s, --skip _N_
Skip first N bytes (negative values seek from end).
-o, --display-offset _N_
Add N bytes to the displayed file offset.
--block-size _SIZE_
Size of the block unit (default: 512).
-v, --no-squeezing
Display all data; don't collapse identical lines with an asterisk.
--color _WHEN_
Color output: always (default), auto, never.
-p, --plain
Plain output (shorthand for --no-characters --no-position --border=none --color=never).
--no-characters
Hide the character panel.
--no-position
Hide the position offset column.
--border _STYLE_
Border style: unicode (default), ascii, none.
--panels _N_
Number of hex data panels (or 'auto').
--group-size _N_
Bytes per group: 1 (default), 2, 4, or 8.
--endianness _ENDIAN_
Byte ordering within groups: little or big.
-h, --help
Display help information.
-V, --version
Display version information.

FAQ

What is the hexyl command used for?

hexyl is a modern hex viewer for the terminal. It displays file contents with colored output distinguishing different byte types. The tool uses colors to highlight ASCII, non-ASCII, null bytes, and whitespace. It provides a clean, readable hex dump with offset and character views.

How do I run a basic hexyl example?

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

What does -n, --length _N_ do in hexyl?

Number of bytes to read (supports k, M, G suffixes and hex).