hexedit十六进制编辑器


安装:

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)