Operating System - HP-UX
1833722 Members
2430 Online
110063 Solutions
New Discussion

UNIX equivalent to DOS's debug

 
SOLVED
Go to solution
Theresa Patrie
Regular Advisor

UNIX equivalent to DOS's debug

Hi, Is there an equivalent to DOS's debug command in UNIX? I would like to examine the hex contents of a file. Thanks in advance!
This is my easy job!
4 REPLIES 4
Craig Rants
Honored Contributor

Re: UNIX equivalent to DOS's debug

There are a few debug programs here, one may suit your needs.

http://hpux.ee.ualberta.ca/

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Rodney Hills
Honored Contributor

Re: UNIX equivalent to DOS's debug

If you are only interested in viewing (not modifying), then you can use
od filename (for octal)
xd filename (for hex)

-- Rod Hills
There be dragons...
harry d brown jr
Honored Contributor
Solution

Re: UNIX equivalent to DOS's debug

You can use

od -xc for hex
xd -xc - is better (it aligns the characters to the hex value)

or

od -bc for octal

live free or die
harry

Live Free or Die
Theresa Patrie
Regular Advisor

Re: UNIX equivalent to DOS's debug

Thanks for the quick response! I knew there had to be a command for it! ITRC to the rescue again!
This is my easy job!