XXD(1) General Commands Manual XXD(1) xxd -- , xxd -h[elp] xxd [] [_ [_]] xxd -r[evert] [] [_ [_]] xxd , , . . uuencode(1) uudecode(1) , ASCII, , , , xxd , . _ , . , _ '-', . , _ ( '-' ), . , "" , , , , - . . , . , -c8, -c 8, -c 010 -cols 8 . -a | -autoskip , . ., , '*'. . -b | -bits ( ), . , , "1" "0". , ASCII ( EBCDIC). -p . -i . -c | -cols <>, . 16 ( -i 12, -ps -- 30, -b -- 6). -- 256. -ps. -ps, 0, . -C | -capitalize , -i. -d , . -E | -EBCDIC ASCII, EBCDIC. . , -r, -p -i. -e . . -g. ASCII ( EBCDIC). -r, -p, -i . -g | -groupsize <> ( ), . -g 0 . <>, 2 , 4 1 . PostScript include. -h | -help . . -i | -include . , , xxd . -i -b. -b. -l | -len , <> , . -n | -name -i. , _len. -o <> . -p | -ps | -postscript | -plain , "" "PostScript". -r | -revert , . . ( ). , xxd . -r -p "" - . . -r -b . -R . . never (), always (), auto (, ). $NO_COLOR , . -seek -r , <> , . -s [+][-]seek ( ) <> _. + , (, ). - , (, +, ). -s , xxd . -u , . . -v | -version . xxd -r , . , , . xxd lseek(2) . , , . xxd -r , . . , , xxd -r , (. -c), . , , ASCII ( EBCDIC), . PostScript xxd -r -p . , . % xxd -i % xxd -i < xxd -s +seek xxd -s seek, , "" , lseek(2). '+' , , , xxd . ( !) ... , 'cat' : % sh -c "cat > plain_copy; xxd -s 0 > hex_copy" < file 0x480 (=1024+128). '+' " ", '128' , dd: % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +128 > hex_snippet" < file 0x100 (=1024-768): % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +-768 > hex_snippet" < file , , , '+' . xxd strace(1) truss(1) , -s. , (0x30 ) : % xxd -s 0x30 file (0x30 ) : % xxd -s -0x30 file 120 20 ( xxd.1 , ): % xxd -l 120 -ps -c 20 xxd.1 2e544820585844203120224d6179203230323422 20224d616e75616c207061676520666f72207878 64220a2e5c220a2e5c222032317374204d617920 313939360a2e5c22204d616e2070616765206175 74686f723a0a2e5c2220202020546f6e79204e75 67656e74203c746f6e79407363746e7567656e2e 120 12 ( xxd.1 , ): % xxd -l 120 -c 12 xxd.1 00000000: 2e54 4820 5858 4420 3120 224d .TH XXD 1 "M 0000000c: 6179 2032 3032 3422 2022 4d61 ay 2024" "Ma 00000018: 6e75 616c 2070 6167 6520 666f nual page fo 00000024: 7220 7878 6422 0a2e 5c22 0a2e r xxd"..\".. 00000030: 5c22 2032 3173 7420 4d61 7920 \" 21st May 0000003c: 3139 3936 0a2e 5c22 204d 616e 1996..\" Man 00000048: 2070 6167 6520 6175 7468 6f72 page author 00000054: 3a0a 2e5c 2220 2020 2054 6f6e :..\" Ton 00000060: 7920 4e75 6765 6e74 203c 746f y Nugent xxd.1 ( xxd.1 , , , UTF-8 -- xxd -s 0x50 -l 13 -c 13 xxd.1): % xxd -s 0x33 -l 13 -c 13 xxd.1 00000033: 3231 7374 204d 6179 2031 3939 36 21st May 1996 _ _ 100 0x00 : % xxd _ | xxd -r -s 100 > _ xxd.1 ( xxd.1 , ): % echo "0000034: 3574 68" | xxd -r - xxd.1 % xxd -s 0x33 -l 13 -c 13 xxd.1 00000033: 3235 7468 204d 6179 2031 3939 36 25th May 1996 65537- , 0x00, , 'A' (0x41): % echo "010000: 41" | xxd -r > file : % xxd -a -c 12 file 00000000: 0000 0000 0000 0000 0000 0000 ............ * 0000fffc: 0000 0000 41 ....A 1- , 'A'. '-r -s' , , , : % echo '010000: 41' | xxd -r -s -0x10000 > file xxd , vim(1) , 'a' 'z': :'a,'z!xxd xxd , vim(1) , 'a' 'z': :'a,'z!xxd -r xxd , vim(1) , . !!xxd -r : % xxd -c1 < /dev/term/b & % stty < /dev/term/b -echo -opost -isig -icanon min 1 % echo -n foo > /dev/term/b , xxd : 0 . -1 ( xxd -r -i ). 1 . 2 . 3 . 4,5 . uuencode(1), uudecode(1), patch(1) . . , , . xxd 1.7 2024-05. (c) (Juergen Weigert), 1990-1997 . - , . , . (Tony Nugent) (Bram Moolenaar). (Juergen Weigert). xxd May 2024 XXD(1)