问题
I need a good HEX editor for Linux, and by good I mean:
- Fast
- Search/replace features
- Can display data not only in hex, but also binary, octal, etc.
- Can work with huge (> 1 gb) files without becoming slow and unresponsive (this requirement is important)
- Optionally, has some compare/diff features
What can you suggest?
回答1:
Bless is a high quality, full featured hex editor.
It is written in mono/Gtk# and its primary platform is GNU/Linux. However it should be able to run without problems on every platform that mono and Gtk# run.
Bless currently provides the following features:
- Efficient editing of large data files and block devices.
- Multilevel undo - redo operations.
- Customizable data views.
- Fast data rendering on screen.
- Multiple tabs.
- Fast find and replace operations.
- A data conversion table.
- Advanced copy/paste capabilities.
- Highlighting of selection pattern matches in the file.
- Plugin based architecture.
- Export of data to text and html (others with plugins).
- Bitwise operations on data.
- A comprehensive user manual.
wxHexEditor is another Free Hex Editor, built because there is no good hex editor for Linux system, specially for big files.
- It uses 64 bit file descriptors (supports files or devices up to 2^64 bytes , means some exabytes but tested only 1 PetaByte file (yet). ).
- It does NOT copy whole file to your RAM. That make it FAST and can open files (which sizes are Multi Giga < Tera < Peta < Exabytes)
- Could open your devices on Linux, Windows or MacOSX.
- Memory Usage : Currently ~10 MegaBytes while opened multiple > ~8GB files.
- Could operate thru XOR encryption.
- Written with C++/wxWidgets GUI libs and can be used with other OSes such as Mac OS, Windows as native application.
- You can copy/edit your Disks, HDD Sectors with it.( Usefull for rescue files/partitions by hand. )
- You can delete/insert bytes to file, more than once, without creating temp file.
DHEX is a more than just another hex editor: It includes a diff mode, which can be used to easily and conveniently compare two binary files. Since it is based on ncurses and is themeable, it can run on any number of systems and scenarios. With its utilization of search logs, it is possible to track changes in different iterations of files easily. Wikipedia article
You can sort on Linux to find some more here: http://en.wikipedia.org/wiki/Comparison_of_hex_editors
回答2:
besides I am a VIMer can do some rare Hex edit with :
:%!xxd
to switch into hex mode:%!xxd -r
to exit from hex mode
But I strongly recommend ht
apt-cache show ht
Package: ht
Version: 2.0.18-1
Installed-Size: 1780
Maintainer: Alexander Reichle-Schmehl <tolimar@debian.org>
Homepage: http://hte.sourceforge.net/
Note: The package is called ht
, whereas the executable is named hte
after the package was installed.
- Supported file formats
- common object file format (COFF/XCOFF32)
- executable and linkable format (ELF)
- linear executables (LE)
- standard DO$ executables (MZ)
- new executables (NE)
- portable executables (PE32/PE64)
- java class files (CLASS)
- Mach exe/link format (MachO)
- X-Box executable (XBE)
- Flat (FLT)
- PowerPC executable format (PEF)
- Code & Data Analyser
- finds branch sources and destinations recursively
- finds procedure entries
- creates labels based on this information
- creates xref information
- allows to interactively analyse unexplored code
- allows to create/rename/delete labels
- allows to create/edit comments
- supports x86, ia64, alpha, ppc and java code
- Target systems
- DJGPP
- GNU/Linux
- FreeBSD
- OpenBSD
- Win32
回答3:
Personally, I use Emacs with hexl-mod.
Emacs is able to work with really huge files. You can use search/replace value easily. Finally, you can use 'ediff' to do some diffs.
回答4:
wxHexEditor is the only GUI disk editor for linux. to google "wxhexeditor site:archive.getdeb.net" and download the .deb file to install
来源:https://stackoverflow.com/questions/5498197/need-a-good-hex-editor-for-linux