hexdump, hd — ASCII, decimal, hexadecimal, octal dump

commandline session

$echo a > hex.txt
$hexdump hex.txt
0000000 0a61
0000002
$
$echo b  > hex.txt
$hexdump hex.txt
0000000 0a62
0000002
$echo ab  > hex.txt
$
$hexdump hex.txt
0000000 6261 000a
0000003
$echo > hex.txt
$hexdump hex.txt
0000000 000a
0000001
$echo abc > hex.txt
$hexdump hex.txt
0000000 6261 0a63
0000004
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s