安裝:
yum install hexedit -y
使用方法:
hexedit -m --color /dev/sdb1 ##同時顯示16進制和ASCII字符 ,並按照顏色標識字段
常用命令:
/ : 搜索指定的16進制字符串或ASCII字符(支持字符串換行搜索),關鍵字為16進制的字符時,所有字符之間不能有空格
tab: 搜索關鍵字時,按tab鍵可以在按照16進制和ASCII字符間來回切換,方便查看ASCII字符和16進制的對應關系
回車鍵 :跳轉到指定的offset地址
其他命令:
| 移動(Moving) | |
|---|---|
| , (shift+<) | 移動到文件首部(go to start) |
| . (shift+>) | 移動到文件尾部(end of the file) |
| → | 下一個字符(next character) |
| ← | 上一個字符(previous character) |
| ↑ | 上一行(previous line) |
| ↓ | 下一行(next line) |
| Home | 行首(beginning of line) |
| End | 行尾(end of line) |
| PageUp | 上一頁(page forward) |
| PageDown | 下一頁(page backward) |
| 雜項(Miscellaneous) | |
|---|---|
| F1 | 幫助(help) |
| F2 | 保存(save) |
| F3 | 載入(load file) |
| Ctrl+X | 保存並退出(save and exit) |
| Ctrl+C | 不保存退出(exit without save) |
| Tab | 十六進制/ASCII碼切換(toggle hex/ascii) |
| Backspace | 撤銷前一個字符(undo previous character) |
| Ctrl+U | 撤銷全部操作(undo all) |
| Ctrl+S | 向下查找(search forward) |
| Ctrl+R | 向上查找(search forward) |
| 復制/粘貼(Cut/Paste) | |
|---|---|
| Esc+W | 復制(copy) |
| Ctrl+Y | 粘貼(paste) |
