16進ダンプする

ファイルなどを16進ダンプするにはod(octet dump)コマンドを使う。

>od -Ax -txC foo.jpg
0000000    ff  d8  ff  e0  00  10  4a  46  49  46  00  01  01  01  00  60
0000010    00  60  00  00  ff  db  00  43  00  08  06  06  07  06  05  08
0000020    07  07  07  09  09  08  0a  0c  14  0d  0c  0b  0b  0c  19  12
0000030    13  0f  14  1d  1a  1f  1e  1d  1a  1c  1c  20  24  2e  27  20
0000040    22  2c  23  1c  1c  28  37  29  2c  30  31  34  34  34  1f  27
...

もとは8進ダンプするコマンドだけど-tオプションで表示形式を選択できる。

-tに続くxで16進表示を指定。続くCでcharサイズごとに区切る。

-Axオプションはアドレスの表示形式を指定している。

xで16進を指定。


Deprecated: Creation of dynamic property WP_Term::$cat_ID is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 378

Deprecated: Creation of dynamic property WP_Term::$category_count is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 379

Deprecated: Creation of dynamic property WP_Term::$category_description is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 380

Deprecated: Creation of dynamic property WP_Term::$cat_name is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 381

Deprecated: Creation of dynamic property WP_Term::$category_nicename is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 382

Deprecated: Creation of dynamic property WP_Term::$category_parent is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/category.php on line 383
This entry was posted in コンピュータ and tagged , , , by bugyo. Bookmark the permalink.

Deprecated: Creation of dynamic property WP_Query::$comments_by_type is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/comment-template.php on line 1528

Leave a Reply

Your email address will not be published. Required fields are marked *

*