HEXDUMP(1) HEXDUMP(1) hexdump - (ascii) 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 +ASCII . %_p |. hd . -d --two-bytes-decimal . . -e --format __ . -f --format-file . (#). -L --color[=] . auto never always. auto . --help. Colors COLORS . -n --length . -o --two-bytes-octal . . -s --skip . -v --no-squeezing -v hexdump . -v ( ) * . -x --two-bytes-hex . . -h --help . -V --version . hexdump -e -f . . : . . . . . / / . . (" "). fprintf ( fprintf(3)) : 1. * . 2. s ( fprintf(3) ). 3. h l n p q . 4. C : \0 NULL \a \b \f \n \r \t \v hexdump . _a[dox] . d o x . _A[dox] _a . _c . ( ) . _p . '.' . _u US ASCII . 0xff . 00 nul 08 bs 10 dle 18 can 7F del 01 soh 09 ht 11 dc1 19 em 02 stx 0A lf 12 dc2 1A sub 03 etx 0B vt 13 dc3 1B esc 04 eot 0C ff 14 dc4 1C fs 05 enq 0D cr 15 nak 1D gs 06 ack 0E so 16 syn 1E rs 07 bel 0F si 17 etb 1F us hexdump . . _L[color_unit_1,color_unit_2,...,color_unit_n] : [!]COLOR[:VALUE][@OFFSET_START[-END]] ! . / . / . COLOR . VALUE . C hexdump (color_units). OFFSET . OFFSET_START (END). : %_c %_p %_u %c . %d %i %o %u %X %x . %E %e %f %G %g . . . . hexdump . - - _a _A. -n ( ). . s '+' ' ' '#' (NULL). -x ( -x ). -x -d -o (endianness). little-endian ( x86 ARM64) big-endian ( s390x). -b -c -C -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" MBR: 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 2.41 $NO_COLOR . $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . terminal-colors.d . . hexdump util-linux . util-linux 2.42.1 2026-05-18 HEXDUMP(1)