HEXYL(1) General Commands Manual HEXYL(1)

hexyl - a command-line hex viewer

hexyl [OPTIONS] [FILE]

hexyl is a simple hex viewer for the terminal. It uses a colored output to distinguish different categories of bytes (NULL bytes, printable ASCII characters, ASCII whitespace characters, other ASCII characters and non-ASCII).

The file to display. If no FILE argument is given, read from STDIN.

Only read N bytes from the input. The N argument can also include a unit with a decimal prefix (kB, MB, ..) or binary prefix (kiB, MiB, ..), or can be specified using a hex number.
An alias for -n/--length.
Yet another alias for -n/--length.
Skip the first N bytes of the input. The N argument can also include a unit (see --length for details). A negative value is valid and will seek from the end of the file.
Sets the size of the block unit to SIZE (default is 512).
$ hexyl --block-size=1024 --length=5block
$ hexyl --block-size=4kB --length=2block
Displays all input data. Otherwise any number of groups of output lines which would be identical to the preceding group of lines, are replaced with a line comprised of a single asterisk.
When to use colors. The auto-mode only displays colors if the output goes to an interactive terminal.
always (default)
auto
never
Whether to draw a border with Unicode characters, ASCII characters, or none at all.
unicode (default)
ascii
none
Add N bytes to the displayed file position. The N argument can also include a unit (see --length for details). A negative value is valid and calculates an offset relative to the end of the file.
Prints help information.
Prints version information.

https://github.com/sharkdp/hexyl

$ hexyl small.png
$ hexyl big.png | less -r
$ hexyl -n 256 /dev/urandom

hexyl was written by David Peter <mail@david-peter.de>.

https://github.com/sharkdp/hexyl/issues

Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
MIT License (https://opensource.org/licenses/MIT)

hexdump(1), xxd(1)

2022-12-05 hexyl 0.12.0