hexcompare(1)
hexcompare π
okay bestie, so this is the manual page for hexcompare β that's the tool name, and it lives in section 1 of the manual (you know, the "user commands" section, the one where all the stuff you actually type lives π
). Buckle up, it's giving forensics girlie and it is iconic.
β¨ NAME β¨
hexcompare β compare and identify changes in binary files π¦
πΈ SYNOPSIS πΈ
hexcompare file1 file2
that's it. two files. that's the whole vibe. π
π DESCRIPTION π
so hexcompare is a tool that compares two binary or ASCII files, and the way it does it is chef's kiss: it splits your screen into two halves. yes, literally two. it's giving split-screen main character energy.
it's useful for forensics cases, and for identifying whether files are identical or just similar π (spoiler: there's a difference, and this tool will show you exactly where).
π FEATURES π
the moment the program starts, you'll see the screen divided in two. let's break it down, because the top part and the bottom part are doing very different jobs.
π§ the top part: the "overview"
this is a block diagram, and it represents the differences between both files at a given offset. think of it as a little map of your data πΊοΈβ¨
- a blue block means the bytes it represents are the same in both files π
- a red block means those bytes are different β€οΈπ₯
- a grey block means neither file has any data at that offset (it's giving empty, it's giving void, it's giving nothing to see here) π©Ά
each block represents a number of bytes. how many bytes? that depends on your terminal window size, bestie β bigger window, more bytes per block, no cap. π
π the bottom part: the raw data
the bottom half of the screen contains the raw data at a specified offset. that's where you go when you wanna see the receipts π§Ύβ¨
π COMMANDS π
here's your keyboard-and-mouse cheat sheet, queen:
"m"key β switches the display between the data shown in hex and ASCII. toggle to your heart's content π"q"key β press it to quit the program. bye bestie π"v"key β makes the data view of the lower part of the screen take up the whole terminal. full screen, full drama π₯οΈβ¨- Arrow keys β use them to go from block to block in the overview. navigation but make it cute β¬οΈβ¬οΈβ¬ οΈβ‘οΈ
- Page Up key β go up lines of hex/ASCII data π
- Page Down key β go down lines of hex/ASCII data π
π mouse stuff
mouse also works!! you can use it to navigate the block diagram "overview". it's giving point-and-click slay:
- single-clicking on a block will load in the offset represented by that block, and show the data that's found there. one click, instant data, we love efficiency π
- double-clicking on a block will bring up a more detailed hex view of the specified location. two clicks, extra detail, obsessed πβ¨
π AUTHOR π
hexcompare was written by Julien McAride and others. shoutout to the whole squad π«Ά
this manual page was written by Raphael Mota Ramos <raphaelmota.ti@gmail.com> for the Debian project β but may be used by others π (generous queen behaviour, honestly)
π quick vibe check: everything above is exactly what the page says. no invented flags, no made-up defaults. if it's not here, it's not in the manual. periodt.
and that's the whole page, bestie!! this one's hexcompare version 1.0.4 π and it was dated March 2016 β vintage but still eating, fr fr. mwah πππ¦
π¦ where this page comes from
- debian bookworm: hexcompare 1.0.4-1+b1 Β· GPL-3.0-or-later
- debian trixie: hexcompare 1.0.4-1+b1 Β· GPL-3.0-or-later
- ubuntu jammy: hexcompare 1.0.4-1build1 Β· GPL-3.0-or-later
- ubuntu noble: hexcompare 1.0.4-1build1 Β· GPL-3.0-or-later
- ubuntu resolute: hexcompare 1.0.4-1build2 Β· GPL-3.0-or-later
- ubuntu stonking: hexcompare 1.0.4-1.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms