需要一个好的 Linux 十六进制编辑器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5498197/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 00:36:35  来源:igfitidea点击:

Need a good hex editor for Linux

linuxhexhex-editors

提问by

I need a good HEX editor for Linux, and by good I mean:

我需要一个好的 Linux 十六进制编辑器,好的我的意思是:

  • 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
  • 快速地
  • 搜索/替换功能
  • 不仅可以显示十六进制数据,还可以显示二进制、八进制等。
  • 可以处理巨大的(> 1 gb)文件而不会变得缓慢和无响应(这个要求很重要)
  • 可选地,具有一些比较/差异功能

What can you suggest?

你能提出什么建议?

采纳答案by Gfy

Blessis a high quality, full featured hex editor.

Bless是一个高质量、全功能的十六进制编辑器。

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.

它是用 mono/Gtk# 编写的,其主要平台是 GNU/Linux。然而,它应该能够在 mono 和 Gtk# 运行的每个平台上毫无问题地运行。

Bless currently provides the following features:

Bless 目前提供以下功能:

  • 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.
  • 高效编辑大型数据文件和块设备。
  • 多级撤消 - 重做操作。
  • 可定制的数据视图。
  • 屏幕上的快速数据渲染。
  • 多个选项卡。
  • 快速查找和替换操作。
  • 数据转换表。
  • 高级复制/粘贴功能。
  • 突出显示文件中的选择模式匹配。
  • 基于插件的架构。
  • 将数据导出为文本和 html(其他带有插件)。
  • 数据的按位运算。
  • 全面的用户手册。

wxHexEditoris another Free Hex Editor, built because there is no good hex editor for Linux system, specially for big files.

wxHexEditor是另一个免费的十六进制编辑器,因为 Linux 系统没有好的十六进制编辑器而构建,特别是大文件。

  • 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.
  • 它使用 64 位文件描述符(最多支持 2^64 字节的文件或设备,这意味着一些艾字节,但仅测试了 1 PetaByte 文件。)。
  • 它不会将整个文件复制到您的 RAM。这使它快速并且可以打开文件(文件大小为多千兆 < Tera < Peta < Exabytes)
  • 可以在 Linux、Windows 或 MacOSX 上打开您的设备。
  • 内存使用:当前 ~10 兆字节,同时打开多个 > ~8GB 文件。
  • 可以通过 XOR 加密操作。
  • 使用 C++/wxWidgets GUI 库编写,可与其他操作系统(如 Mac OS、Windows)一起用作本机应用程序。
  • 您可以使用它复制/编辑您的磁盘、硬盘扇区。(对于手动救援文件/分区很有用。)
  • 您可以多次删除/插入字节到文件,而无需创建临时文件。

DHEXis 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

DHEX不仅仅是另一个十六进制编辑器:它包括一个差异模式,可用于轻松方便地比较两个二进制文件。由于它基于 ncurses 并且是主题化的,因此它可以在任意数量的系统和场景上运行。通过使用搜索日志,可以轻松跟踪文件不同迭代中的更改。维基百科文章

You can sort on Linux to find some more here: http://en.wikipedia.org/wiki/Comparison_of_hex_editors

您可以在 Linux 上进行排序以在此处找到更多信息:http: //en.wikipedia.org/wiki/Comparison_of_hex_editors

回答by Sandro Munda

Personally, I use Emacs with hexl-mod.

就个人而言,我将 Emacs 与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.

Emacs 能够处理非常大的文件。您可以轻松使用搜索/替换值。最后,您可以使用“ ediff”来做一些差异。

回答by kiiwii

besides I am a VIMer can do some rare Hex edit with :

除了我是一个 VIMer 可以做一些罕见的十六进制编辑:

  • :%!xxdto switch into hex mode

  • :%!xxd -rto exit from hex mode

  • :%!xxd切换到十六进制模式

  • :%!xxd -r退出十六进制模式

But I strongly recommend ht

但我强烈推荐 ht

apt-cache show ht

Package: ht
Version: 2.0.18-1
Installed-Size: 1780
Maintainer: Alexander Reichle-Schmehl <[email protected]>

Homepage: http://hte.sourceforge.net/

主页:http: //hte.sourceforge.net/

Note: The package is called ht, whereas the executable is named hteafter the package was installed.

注意:包名为ht,而可执行文件以hte安装包的名称命名。

  1. 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)
  2. 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
  3. Target systems
    • DJGPP
    • GNU/Linux
    • FreeBSD
    • OpenBSD
    • Win32
  1. 支持的文件格式
    • 通用目标文件格式 (COFF/XCOFF32)
    • 可执行和可链接格式 (ELF)
    • 线性可执行文件 (LE)
    • 标准 DO$ 可执行文件 (MZ)
    • 新的可执行文件 (NE)
    • 可移植的可执行文件 (PE32/PE64)
    • java类文件(类)
    • Mach exe/链接格式 (MachO)
    • X-Box 可执行文件 (XBE)
    • 扁平 (FLT)
    • PowerPC 可执行格式 (PEF)
  2. 代码和数据分析器
    • 递归查找分支源和目标
    • 查找过程条目
    • 根据此信息创建标签
    • 创建外部参照信息
    • 允许以交互方式分析未开发的代码
    • 允许创建/重命名/删除标签
    • 允许创建/编辑评论
    • 支持 x86、ia64、alpha、ppc 和 java 代码
  3. 目标系统
    • DJGPP
    • GNU/Linux
    • FreeBSD
    • 开放式BSD
    • 赢32

回答by diyism

wxHexEditor is the only GUI disk editor for linux. to google "wxhexeditor site:archive.getdeb.net" and download the .deb file to install

wxHexEditor 是唯一一款适用于 linux 的 GUI 磁盘编辑器。谷歌“wxhexeditor site:archive.getdeb.net”并下载.deb文件进行安装