HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hexyl — A simple hex viewer for the terminal. Uses colored output to distinguish different categories of byt

Submitted by: @import:tldr-pages··
0
Viewed 0 times
simplehexylthecommandcliviewerhexfor

Problem

How to use the hexyl command: A simple hex viewer for the terminal. Uses colored output to distinguish different categories of bytes. See also: od, xxd, hexdump. More information: <https://github.com/sharkdp/hexyl/blob/master/doc/hexyl.1.md>.

Solution

hexyl — A simple hex viewer for the terminal. Uses colored output to distinguish different categories of bytes. See also: od, xxd, hexdump. More information: <https://github.com/sharkdp/hexyl/blob/master/doc/hexyl.1.md>.

Print the hexadecimal representation of a file:
hexyl {{path/to/file}}


Print the hexadecimal representation of the first n bytes of a file:
hexyl {{[-n|--length]}} {{n}} {{path/to/file}}

Code Snippets

Print the hexadecimal representation of a file

hexyl {{path/to/file}}

Print the hexadecimal representation of the first n bytes of a file

hexyl {{[-n|--length]}} {{n}} {{path/to/file}}

Context

tldr-pages: common/hexyl

Revisions (0)

No revisions yet.