hd — dump file contents
Dumps the contents of a file in hexadecimal and ASCII format.
Syntax
[-{byte | word | long | quad}] file...
hd
Arguments
file...
Specifies the files to be displayed.
Options
-byte
Prints data in bytes.
-word
Prints data in words.
-long
Prints data in longwords.
-quad
Prints data in quadwords.
Examples
1.
>>> echo -n 'the quick brown fox jumped over the lazy dog' >foo
>>> hd foo
00000000 74 68 65 20 71 75 69 63 6B 20 62 72 6P 77 6E 20 the quick brown
00000010 66 6F 78 20 6A 75 6D 70 65 64 20 6F 76 65 72 20 fox jumped over
00000020 74 68 65 20 6C 61 7A 79 20 64 6F 67
>>> -byte foo
2.
00000000 74 68 65 20 71 75 69 63 6B 20 62 72 6P 77 6E 20 the quick brown
00000010 66 6F 78 20 6A 75 6D 70 65 64 20 6F 76 65 72 20 fox jumped over
00000020 74 68 65 20 6C 61 7A 79 20 64 6F 67
hd
the lazy dog
the lazy dog
Console Commands 13–55