百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dz6

> 开发工具
开源

基于 Vim 的快速终端十六进制编辑器

186 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于 Vim 的快速终端十六进制编辑器

dz6

Fast Vim-inspired hex editor for the terminal

Features

  • Fast, even when editing large files
  • Runs in the terminal / Text User Interface (TUI)
  • Vim-like key bindings
  • Configurable options
  • Edit in hex or ASCII
  • String list with regex filtering
  • Multiple smart ways to navigate through a file
  • Find strings and hex bytes
  • Add comments and bookmarks
  • Mark blocks with colors
  • PE/ELF headers parsing
  • Cross-platform
  • Open source

Demo

Installation

Rust package manager (all operating systems)

Follow the instructions here to install cargo. Then, open up a terminal and type

cargo install dz6

Arch Linux (via AUR)

yay -S dz6

BigLinux

pacman -S dz6

FreeBSD

pkg install dz6

Windows

If you have WinGet, install dz6 with

winget install mentebinaria.dz6

Scoop users can also

scoop install dz6

Alternatively, download the release package for your system.

macOS

Homebrew users can

bash
brew install dz6

From the sources

If you want to test the most recent, but still under development, version of dz6, you'll need Cargo and git, then you can

bash
git clone https://github.com/mentebinaria/dz6.git
cd dz6
cargo install --path .

Usage

Usage: dz6 [OPTIONS] 

Arguments:
    File to open

Options:
  -o, --offset   Initial cursor offset (hex default; `t` suffix = decimal) [default: 0]
  -r, --readonly         Set read-only mode
  -h, --help             Print help
  -V, --version          Print version

Once you load a file in dz6, you can use the commands below.

Global key bindings

Key Action Tips
Tab Switch views Cycle through Hex, Text, and Headers. Backtab: Cycle backward.
Alt+l Open log window
: Open command bar See Commands

Commands

Command Action Parameters Tips/Examples
`` Go to offset hex default; t suffix = decimal; + prefix = incremental jump; - prefix = decremental jump
cmt Add to cmt 1000 "my comment" (comment at offset 0x1000; offset obeys the same rules above)
sel Select bytes from sel 40 10t (select 10 bytes from offset 0x40)
set byteline Set the number of bytes per line `` or auto set byteline 8 (default is 16; auto enables automatic setting based on screen width)
set ctrlchar Set the character shown in the ASCII dump for non-graphic values `` set ctrlchar " " would set a blankspace (default: .)
set db Turn on database file saving/loading (default) A database file with a .dz6 extension will be used to store bookmarks and comments for the file
set nodb Turn off database file saving/loading
set dimzero Dim (gray out) null bytes only (default)
set dimctrl Dim all control characters All non-graphic characters will be dimmed
set nodim Turn off byte dimming
set theme Set the theme dark or light set theme light (default: dark)
set view Changes the current view text, hex or header set view header (default: hex)
set wrapscan Enable search results wrap
set nowrapscan Disable search results wrap
w Write changes to file
wq or x Write changes to file and quit
q Quit without saving changes In replace mode, T (truncate) is an exception because it modifies the file immediately.

If you need permanent settings, create a $HOME/.dz6init file containing any of the commands above, one per line. dz6 will load that at startup. Lines starting with # are ignored.

Hex view

This is the main view you would expect from a hex editor. It displays file offsets alongside the file contents in a hexadecimal dump that you can navigate, search, edit, and more.

Key Action Tips
Arrow keys Navigation Vim-like h, j, k, l also work
w d q Advance by a word (2 bytes), a dword (4 bytes), or a qword (8 bytes), respectively Use the capital letters W, D, and Q to move backwards
o Go to the next other byte (the one that differs from the byte under the cursor) O goes backwards
Home or 0 Set the cursor to the beginning of the current line
End or $ Set the cursor to the end of the current line
Ctrl+Home or g Go to the first offset
Ctrl+End or G Go to the last offset in the file
Ctrl+f or Page Down Move down one page
Ctrl+bor Page Up Move up one page
r Enter replace mode
z Set the byte under the cursor zero
~ Change case if applicable Only works with bytes within the ASCII alphabetic range
Ctrl+a Increment byte under the cursor
Ctrl+x Decrement byte under the cursor
v Enter select mode
u Undo the last change made to the buffer Use it before writing to the file (:w)
/ Search (forward) Search the entire file. Tab cycles between ASCII and hex search
n Search next (forward)
? Search (backward) Search the entire file. Tab cycles between ASCII and hex search
N Search next (backward)
s Open Strings window
Backspace Go to the previously visited offset This is useful after a Go to command, for example
+ Add current offset to bookmarks
- Go to the last added bookmark
Alt+1..8 Go to bookmark
Alt+- Remove the last added bookmark The cursor must be at the bookmarked offset
Alt+0 Clear bookmarks
Alt+h Toggle b

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustelffile-editorfile-inspectionforensics

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具