1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

hexyl: add page (#3437)

This commit is contained in:
Mads Johansen 2019-10-23 02:21:52 +02:00 committed by Starbeamrainbowlabs
parent ec7a7bb251
commit 5969edc90d

20
pages/common/hexyl.md Normal file
View file

@ -0,0 +1,20 @@
# hexyl
> A simple hex viewer for the terminal. Uses colored output to distinguish different categories of bytes.
> More information: <https://github.com/sharkdp/hexyl>.
- 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 {{n}} {{path/to/file}}`
- Print bytes 512 through 1024 of a file:
`hexyl -r {{512}}:{{1024}} {{path/to/file}}`
- Print 512 bytes starting at the 1024th byte:
`hexyl -r {{1024}}:+{{512}} {{path/to/file}}`