OD(1)
πΏ OD(1) β the dump-files-in-octal-and-other-formats page, bestie edition β¨
okay so real talk: this is od from the Perl user-contributed manpages, and it's literally the "look inside a file and show me the raw bytes" tool. no cap, it's giving x-ray vision for files. π¦
πΈ NAME πΈ
od β dump files in octal and other formats π
β SYNOPSIS β
od [ -aBbcDdeFfHhilOosXxv ] [-j skip_bytes] [-N limit_bytes]
[ -A radix ] [ -t type ] [ file... ]
π DESCRIPTION π
okay so here's the vibe: od writes the contents of the files you give it to the standard output β or, if you don't name any files at all, it just reads from the standard input. main character energy, honestly. π«Ά
every line of the output has the offset in the input file chilling in the leftmost column, and then one or more columns of file data after it β and the format of that data is entirely up to the options you pick. by default? od prints the file offsets in octal and the file data as two-byte octal numbers. classic. β¨
π OPTIONS π
the following options are available, and yes, we're going through all of them:
-ARadix β picks the offset prefix format:'d'for decimal,'o'for octal,'x'for hexadecimal,'n'for none.-aβ dumps characters in 7-bit ASCII format, ignoring the highest bit of each byte. the names of ASCII control characters get displayed, which is lowkey iconic.-Bβ same as-o-bβ single-byte octal display.-cβ displays characters literally, with non-printable characters shown as C escape sequences. very readable, very slay.-Dβ four-byte unsigned decimal display.-dβ two-byte unsigned decimal display.-eβ eight-byte floating point display.-Fβ same as-e-fβ shows input as floating point numbers in exponent form.-Hβ four-byte hex display.-hβ two-byte hex display.-iβ shows two-byte signed decimal integers.-jSkip β ignore the first Skip bytes of input. like skipping the intro, but for bytes.-lβ shows four-byte signed decimal integers.-NBytes β sets the number of maximum input bytes read.-Oβ four-byte octal display.-oβ formats input as two-byte octal numbers.-sβ same as-i-tType β selects the output format as one of the following, and ngl this list is a whole mood:aβ ASCII character names. Same as-acβ Characters with C escapes. Same as-co1β 1-byte unsigned octalo2β 2-byte unsigned octalo4β 4-byte unsigned octalo8β 8-byte unsigned octald1β 1-byte signed decimald2β 2-byte signed decimald4β 4-byte signed decimald8β 8-byte signed decimalu1β 1-byte unsigned decimalu2β 2-byte unsigned decimalu4β 4-byte unsigned decimalu8β 8-byte unsigned decimalx1β 1-byte unsigned hexadecimalx2β 2-byte unsigned hexadecimalx4β 4-byte unsigned hexadecimalx8β 8-byte unsigned hexadecimalf4β 4-byte floating point. Same as-ff8β 8-byte floating point. Same as-F
heads up bestie: this option overrides other formatting options. so like, -t wins, periodt. π
-Xβ same as-H-xβ same as-h-vβ shows all lines, even if they're identical to the previous line. no skipping duplicates, no filtering, we see everything. π
π§ SEE ALSO π§
π AUTHOR π
Mark Kahn, mkahn@vbe.com. shoutout mark!! π«Ά
π COPYRIGHT and LICENSE π
This program is copyright (c) Mark Kahn 1999.
This program is free and open software. You may use, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same. π
k that's the whole page!! this one came from perl v5.42.2, dated 2026-02-15 β so like, cite it cute when you quote it πβ¨ bye bestie!! π πΈ
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms