1820882 Members
3645 Online
109628 Solutions
New Discussion юеВ

Hex Dump Of File

 
SOLVED
Go to solution
Thao Huynh
Advisor

Hex Dump Of File

Hi,

what is the HP-UX command to display the hex dump of the file?

Thanks,
Thao
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor
Solution

Re: Hex Dump Of File

Hi Thao:

# xd file

...of course, see the manpages for 'xd' for its various options.

Regards!

...JRF...
Thao Huynh
Advisor

Re: Hex Dump Of File

xp works good.

What is the command to pad zeros (0) to the files?

Thanks,
Thao
Thao Huynh
Advisor

Re: Hex Dump Of File

xd works good.

What is the command to pad zeros (0) to the files?

Thanks,
Thao
Thao Huynh
Advisor

Re: Hex Dump Of File

Sorry, I would like to place all zeros (0) to raw devices (rdsk). The format command type?

Thanks,
Thao
Court Campbell
Honored Contributor

Re: Hex Dump Of File

dd if=/dev/zero of=/dev/rdsk/c#t#d# bs=?? count=??
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Hex Dump Of File

Sorry, you don't need count=. And bs should equal 1024.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Thao Huynh
Advisor

Re: Hex Dump Of File

Thank you.
Court Campbell
Honored Contributor

Re: Hex Dump Of File

Please do not forget to assign James and I points.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Thao Huynh
Advisor

Re: Hex Dump Of File

James and Court are 10 points