Hex Editor
Edit your hex files reliably and in bytes
Edit your hex files reliably and in bytes
You're looking for an ed
-like hex editing experience which allows you to view and edit the binary file. This is the right place! The edit
command infers the file type whether it's the text file, the JSON file, or the binary file. It contains many editing tools described in the below section by invoking these commands.
Unless you know what you're doing with the binary file, editing such file in this way will lead to data corruption or data loss in the targeted file.
You can consult the below page for the list of hex editor commands.
Commands ListIn addition to the hex editor being a shell, you can switch to an alternative mode when you're in the shell by executing the tui
command. This way, you'll get access to the fully interactive hex editor.
The interactive hex editor works like any other interactive hex editor. However, it's just that it's different in terms of how it operates.
To exit, press ESC
.
To get a list of available keybindings, press K
.
The currently selected byte is highlighted with the green color, depending on your kernel theme. Here are some of the common controls:
Key | Action |
---|---|
| Inserts a new byte to the selected byte number. |
| Removes a selected byte number |
| Replaces the currently selected byte with another byte value |
| Replaces all instances of the currently selected byte with another byte value |
| Shows you a box about the currently selected byte number information |
| Advances one byte backwards |
| Advances one byte forwards |
| Advances 16 bytes backwards |
| Advances 16 bytes forwards |
| Goes to the previous page |
| Goes to the next page |
| Goes to the beginning of the binary file |
| Goes to the end of the binary file |