TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hexyl: A command-line hex viewer

456 pointsby okanesenover 6 years ago

29 comments

Twisolover 6 years ago
I admit, my first thought on seeing the title was &quot;What&#x27;s wrong with xxd?&quot;<p>This is nice! I like the colorization a lot -- it&#x27;s like with source code, you don&#x27;t realize how much you rely on the colors until you get a new computer and need to download syntax definitions for your editor again. Only feature I <i>really</i> think is missing is line numbers.<p>Nicely done!
评论 #18865626 未加载
评论 #18865808 未加载
评论 #18869568 未加载
评论 #18865493 未加载
评论 #18865403 未加载
评论 #18865475 未加载
评论 #18866272 未加载
评论 #18866904 未加载
评论 #18866625 未加载
twicover 6 years ago
One ludicrous nitpick: the logo doesn&#x27;t show anything hexyl, that&#x27;s 1,2,3,5-tetramethylbenzene. If it was a functional group, it might be 3,4,5-trimethylbenzyl or something like that.<p>Hexyl would look like:<p><pre><code> R \&#x2F;\&#x2F;\&#x2F;</code></pre>
评论 #18867773 未加载
hwjover 6 years ago
While reading this my hope was it not being written in JavaScript. I&#x27;m not disappointed ;)
评论 #18866247 未加载
评论 #18865477 未加载
评论 #18866214 未加载
评论 #18868146 未加载
评论 #18866234 未加载
xvilkaover 6 years ago
It is possible to use also radare2[1] for this, along with radiff2. It provides more options and has zero external dependencies.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;radare&#x2F;radare2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;radare&#x2F;radare2</a>
codewritinfoolover 6 years ago
This is great. The same author also wrote insect, which is cool, too. <a href="https:&#x2F;&#x2F;github.com&#x2F;sharkdp&#x2F;insect" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sharkdp&#x2F;insect</a>
评论 #18866300 未加载
评论 #18869482 未加载
heliostaticover 6 years ago
For something with a little more firepower, I like: <a href="https:&#x2F;&#x2F;github.com&#x2F;evanmiller&#x2F;hecate" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evanmiller&#x2F;hecate</a>
ausjkeover 6 years ago
the author appears to be a true rust master, he wrote quite a few neat programs in rust, very impressive and that actually got me interested in rust lang
评论 #18866989 未加载
评论 #18867753 未加载
zwischenzugover 6 years ago
I use hexer for this, which is an editor too.<p><a href="http:&#x2F;&#x2F;blog.metaclassofnil.com&#x2F;?p=757" rel="nofollow">http:&#x2F;&#x2F;blog.metaclassofnil.com&#x2F;?p=757</a><p>There&#x27;s also a vim mode for hex, which I use less often:<p><a href="https:&#x2F;&#x2F;vi.stackexchange.com&#x2F;questions&#x2F;2232&#x2F;how-can-i-use-vim-as-a-hex-editor" rel="nofollow">https:&#x2F;&#x2F;vi.stackexchange.com&#x2F;questions&#x2F;2232&#x2F;how-can-i-use-vi...</a>
评论 #18866060 未加载
评论 #18866203 未加载
iso-8859-1over 6 years ago
Needs a diff mode so that it can also replace vbindiff.
krylonover 6 years ago
I do not use a hex editor&#x2F;viewer often. Not at all. But when I do, I am painfully aware of how sparse my toolbelt just became.<p>This little program should fit nicely into that category. An area I would like to explore, but have little-to-none incentives.
farmerbbover 6 years ago
I&#x27;ve personally found vbindiff excellent for viewing files as hex: <a href="https:&#x2F;&#x2F;www.cjmweb.net&#x2F;vbindiff&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cjmweb.net&#x2F;vbindiff&#x2F;</a>
neulandover 6 years ago
The colorized output is a nice incremental improvement on xxd. And, I think that it&#x27;s nice that the README doesn&#x27;t unnecessarily emphasize that it&#x27;s written in Rust.
JoachimSover 6 years ago
Slightly off tangent: One tool I have used to dump data (and more) is cxmon. A very nice monitor if one grew up using monitor cartridges on C64, Amiga etc:<p><a href="http:&#x2F;&#x2F;cxmon.cebix.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cxmon.cebix.net&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;cebix&#x2F;macemu&#x2F;tree&#x2F;master&#x2F;cxmon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cebix&#x2F;macemu&#x2F;tree&#x2F;master&#x2F;cxmon</a>
w4rh4wk5over 6 years ago
Has anyone compared this to dhex, hexer, or ht?
lsllcover 6 years ago
The colors remind me of editing MS-DOS files &amp; drive structures with Norton Disk Doctor! Fantastic!
DarkCrusader2over 6 years ago
The repo author has some pretty interesting rust projects. Worth checking out.
rswailover 6 years ago
Cool tool :) having a hex dumper that understood UTF-8 and dumped the characters as one of the columns would be awesome too. These days, ASCII is a small subset of strings.
评论 #18872196 未加载
xbryanxover 6 years ago
Sorry to ask, but what is he use case for a hex viewer like this? What are the kinds of projects you might be working on when you use something like this?
评论 #18866884 未加载
评论 #18867116 未加载
评论 #18870885 未加载
评论 #18870979 未加载
评论 #18867203 未加载
EamonnMRover 6 years ago
I&#x27;ve been looking for a command line hex editor too.
评论 #18870986 未加载
RealityVoidover 6 years ago
Would have loved being able to run it on windows. I use hex viewers for embedded work and have been looking for a decent one for Win.
评论 #18868535 未加载
obphuscateover 6 years ago
Ok, been a lurker on HN for awhile, but created an account to post.<p>This is freaking awesome. Been looking for something like this for awhile!
jbtuleover 6 years ago
I wish it would work with less or have less like features, taking the first n bytes is okay, but pretty minimal.
nickysielickiover 6 years ago
Is anyone aware of a React component that implements a decent hex viewer?
ape4over 6 years ago
Hope this gets into distros
评论 #18866788 未加载
IWeldMelonsover 6 years ago
I guess I am too old, but I use mcview. Or HIEW.
platzover 6 years ago
why am i seeing ugly background-colors with rxvt-unicode <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;qkzAkqR" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;qkzAkqR</a> instead of the good foreground colors I see in xfce4-terminal <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;LY6bPn9" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;LY6bPn9</a><p>i do seem to have 256 colors in urxvt my $TERM is rxvt-256color and i have rxvt-unicode-256color installed
评论 #18867695 未加载
sashkover 6 years ago
I miss hiew.
fxfanover 6 years ago
If I can make a suggestion - I don&#x27;t mind the program being slow because of all the logic - how would it be if you didn&#x27;t give special status to ascii but instead tried to intelligently assume a string encoding for strings and accordingly colored &quot;binary&quot; vs &quot;text&quot; (utf-8, utf-16)
miki_rktover 6 years ago
What&#x27;s wrong with hexdump?
评论 #18865880 未加载
评论 #18865902 未加载