Operating System - HP-UX
1833060 Members
2659 Online
110049 Solutions
New Discussion

Is there any utility can dump contents in Hex mode?

 
SOLVED
Go to solution
Daniel Zhou_1
New Member

Is there any utility can dump contents in Hex mode?

Is there any utility can dump contents in Hex mode? Like debug in DOS?
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Is there any utility can dump contents in Hex mode?

One of the best is Gnu's hexedit which is available for download from any of the HP-UX Porting Centre's. Make sure that you also download and install any required packages. For more casual use od and xd can be uses. Man od for details.

If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Is there any utility can dump contents in Hex mode?

xd is the simplest tool. For a typical hex/char dump:

xd -x -c /etc/hosts

Some people may suggest od but it turns out that xd and od are the same program with the same options. od -x -c is the the same as xd -x -c (they are hard linked).


Bill Hassell, sysadmin
Daniel Zhou_1
New Member

Re: Is there any utility can dump contents in Hex mode?

Thank you guys!