Hex editor for large files in Linux

4

3

I need to edit and navigate through a rather large binary file (~8 GB) in Linux. I'd use Hiew if I was on Windows, are there any similar tools for Linux?

Preferably GNOME applications, but terminal ones will do as well.

Art

Posted 2009-09-22T14:25:28.403

Reputation: 921

Question was closed 2018-09-30T21:45:25.120

Answers

6

I've been using Curses Hexedit, it doesn't seem to care of the filesizes and I have often edited even my harddisks directly with it.

Raynet

Posted 2009-09-22T14:25:28.403

Reputation: 674

Link rot of the downloads on that page – Mark Jeronimus – 2020-01-07T21:11:51.333

11

wxHexEditor

There is no good hex/disk editor for linux. So I build one for myself... It's open source and can open files up to "exabyte".

enter image description here

E.U.A.

Posted 2009-09-22T14:25:28.403

Reputation: 111

Not HiDPI compatible, very slow (even on a 10M file), missing simple options like fixed columns and insert cursor, and lots of typos – Mark Jeronimus – 2020-01-07T21:10:02.127

+1 Since you contribute back to the community, GPL:ed app hosted on SourceForge :) – Johan – 2011-11-21T21:41:40.283

+1, The blog post comparing 5 Unix editors also lists wxHexEditor along with LFHex. Community++ :-) Keep up the good work! – nik – 2013-05-28T17:55:05.597

6

Check the Linux column at this Comparison of hex editors.
And a Comparison of 5 Hex Editors for Ubuntu.
Refers LFHex,

lfhex can view files over 4gigs in size (if the OS supports large file offsets). Using a paged i/o abstraction file open times are invariant with file size, a 2gig file opens just as fast as a 2k file.

nik

Posted 2009-09-22T14:25:28.403

Reputation: 50 788

I tried lfhex, but it seems to be lacking even a simple search function. – Art – 2009-09-22T22:10:24.537

there are more editors in the other two links. – nik – 2009-09-23T04:40:11.323

1

I have not tried an 8GB file, but vim has always worked for me :%!xxd converts to hex, :%!xxd -r converts back. I've also used okteta, but it's a KDE app. Check out this page.

DaveParillo

Posted 2009-09-22T14:25:28.403

Reputation: 13 402

Note that vim sometimes converts binary files while opening the buffer (indicated with [converted]), causing the buffer to be bigger than the file (because of inserted characters), and thus the corruption of said file if you over-write it. Even with :set binary. Even if you don't even touch anything and just do $ vim "+set binary" <file> +wq. In my experiment, the file became 150% larger regardless of what I did. Rather, what you want to do is not let vim handle the binary at all and delegate it entirely to xxd and the shell: :r !xxd <file> to read and :w !xxd -r > <file> to write. – Braden Best – 2018-04-01T23:58:33.830

1

there is bview that may do that

user7963

Posted 2009-09-22T14:25:28.403

Reputation: 1 397

0

Art: lfview does have a search function, counter-intuitively called "Conversion Assistant" in the "View" menu. That function converts ascii to hex, for example, and searches for the result.

lfview can handle files larger than RAM, while bvi/bview is limited by available memory.

Graham

Posted 2009-09-22T14:25:28.403

Reputation:

bvi (version 1.3.2-2) on my Ubuntu Precise on amd64 actually does not work properly with files larger than 2G (actually 4K smaller than that): although it correctly recognizes the length of file, everything starting from the offset 0x7ffff000 is shown as 00s. – Ivan Tarasov – 2012-12-18T23:03:14.957

0

Just recently I published Hexinator, a free hex editor for Linux: https://hexinator.com

It supports many text encodings, shows variables of different sizes and much more.

Hexinator screen shot

pi3

Posted 2009-09-22T14:25:28.403

Reputation: 101