Quickly view raw file bytes in octal, hex, or character form to debug and inspect binary data. 18.04.2026 | reading time: 2 min When a file behaves oddly or a protocol exchange must be verified, `od` reveals the raw bytes so the issue becomes visible rather than mysterious; use `od` to display octal by default or switch format to hex or character view to understand what is stored on disk. Quick demo Create a small sample and inspect it: `printf 'Hello\n' > sample.bin`; default view with `od sample.bin` shows octal bytes and offsets like `0000000 110 145 154 154 157 012`; show hex bytes with `od -An -t x1 sample.bin` output `48 65 6c 6c 6f 0a`; show characters with `od -An -t c sample.bin` output `H e l l o \n`. Options to know Key switches to remember: `-t` selects type (for example `x1` hex bytes or `c` characters), `-An` suppresses addresses, `-v` prevents suppression of identical lines, `-j` skips bytes and `-N` limits count; combine them to extract a slice of data or to format bytes for scripts and reports. Complementary utilities `od` is low-level and portable; use `hexdump` or `xxd` for prettier hex layouts, `strings` to extract printable text from binaries and `file` to quickly guess data type before diving into byte-level inspection. Next steps Practice inspecting various file types, chain `od` with `head` and `dd` for targeted reads, and consider deepening Linux skills with study for CompTIA Linux+ or LPIC-1 using intensive exam prep at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities filesystem troubleshooting scripting