OD(1)

πŸ“¦ version 1.053, in alpine 3.24

πŸ’Ώ 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:

  • -A Radix β€” 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.
  • -j Skip β€” ignore the first Skip bytes of input. like skipping the intro, but for bytes.
  • -l β€” shows four-byte signed decimal integers.
  • -N Bytes β€” 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
  • -t Type β€” selects the output format as one of the following, and ngl this list is a whole mood:
    • a β€” ASCII character names. Same as -a
    • c β€” Characters with C escapes. Same as -c
    • o1 β€” 1-byte unsigned octal
    • o2 β€” 2-byte unsigned octal
    • o4 β€” 4-byte unsigned octal
    • o8 β€” 8-byte unsigned octal
    • d1 β€” 1-byte signed decimal
    • d2 β€” 2-byte signed decimal
    • d4 β€” 4-byte signed decimal
    • d8 β€” 8-byte signed decimal
    • u1 β€” 1-byte unsigned decimal
    • u2 β€” 2-byte unsigned decimal
    • u4 β€” 4-byte unsigned decimal
    • u8 β€” 8-byte unsigned decimal
    • x1 β€” 1-byte unsigned hexadecimal
    • x2 β€” 2-byte unsigned hexadecimal
    • x4 β€” 4-byte unsigned hexadecimal
    • x8 β€” 8-byte unsigned hexadecimal
    • f4 β€” 4-byte floating point. Same as -f
    • f8 β€” 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!! 🫢


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