HEXDUMP(1) HEXDUMP(1) hexdump - , , hexdump ... hd ... hexdump , , . , KiB (=1024), MiB (=1024*1024), GiB, TiB, PiB, EiB, ZiB YiB (,,iB" , ., ,,K" ,,KiB") KB (=1000), MB (=1000*1000) GB, TB, PB, EB, ZB YB. -b, --one-byte-octal . , , , , . -X, --one-byte-hex . , , , , . -c, --one-byte-char . , , , . -C, --canonical + . , , , , %_p | . hd . -d, --two-bytes-decimal . , , , , , , . -e, --format _ . -f, --format-file . - (#) . -L, --color[=when] . ,,when" auto, never always. ,,when" , auto. ; --help. . -n, --length . -o, --two-bytes-octal . , , , , , , . -s, --skip . -v, --no-squeezing -v hexdump . -v, ( ), . -x, --two-bytes-hex . , , , , , , . -h, --help . -V, --version Display version and exit. , hexdump , -e -f, . , . : , . , . . . . / , / . . (" "). ,,fprintf" ( fprintf(3)), : 1. (*) . 2. s ( fprintf(3) ). 3. h, l, n, p, q . 4. C : +---------------------------------+----+ |NULL | \0 | +---------------------------------+----+ |< | \a | |> | | +---------------------------------+----+ |<> | \b | +---------------------------------+----+ |< | \f | |> | | +---------------------------------+----+ |< > | \n | +---------------------------------+----+ |< | \r | |> | | +---------------------------------+----+ |<> | \t | +---------------------------------+----+ |< | \v | |> | | +---------------------------------+----+ hexdump . _a[dox] , , . d, o, x , . _A[dox] _a , . _c . , , ( ), . _p . '.'. _u , , , . 0xff, , . +--------+---------+---------+---------+---------+---------+ |000 nul | 001 soh | 002 stx | 003 etx | 004 eot | 005 enq | +--------+---------+---------+---------+---------+---------+ |006 ack | 007 bel | 008 bs | 009 ht | 00A lf | 00B vt | +--------+---------+---------+---------+---------+---------+ |00C ff | 00D cr | 00E so | 00F si | 010 dle | 011 dc1 | +--------+---------+---------+---------+---------+---------+ |012 dc2 | 013 dc3 | 014 dc4 | 015 nak | 016 syn | 017 etb | +--------+---------+---------+---------+---------+---------+ |018 can | 019 em | 01A sub | 01B esc | 01C fs | 01D gs | +--------+---------+---------+---------+---------+---------+ |01E rs | 01F us | 0FF del | | | | +--------+---------+---------+---------+---------+---------+ , hexdump . , , . _L[__1,__2,...,__n] : [!][:][@_[-]] ! . / . / . 8 . . C hexdump- _. . _ . : %_c, %_p, %_u, %c . %d, %i, %o, %u, %X, %x , , . %E, %e, %f, %G, %g , . , . , . , , . , hexdump , , . _a _A. , -n , , (. ). . s , ,,+", ,, ", ,,#" NULL . , -x ( -x ). hexdump 0 > 0 . hexdump IEEE Std 1003.2 ("POSIX.2"). : "%06.6_ao " 12/1 "%3_u " "\t" "%_p " "\n" -x: "%07.7_Ax\n" "%07.7_ax " 8/2 "%04x " "\n" -: 510 511 0xAA55, . "%07.7_Ax_L[cyan]\n" "%07.7_ax_L[cyan] " 8/2 " %04x_L[green:0xAA55@510-511,!red:0xAA55@510-511] " "\n" ,,terminal-colors.d(5)" . /etc/terminal-colors.d/hexdump.disable hexdump /etc/terminal-colors.d/disable Since version 2.41, the $NO_COLOR environment variable is also supported to disable output colorization unless explicitly enabled by a command-line option. $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . , terminal-colors.d . For bug reports, use the issue tracker . hexdump ,,util-linux" . util-linux 2.41 2025-03-29 HEXDUMP(1)