-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux od Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to od on Linux, covering Arch Linux, CachyOS, and other distributions including octal dump, file inspection, and binary data analysis.
Basic usage:
# Octal dump
od file.txt
# Shows file in octal formatHex format:
# Hexadecimal format
od -x file.txt
# -x = hexadecimal (shows in hex)Octal output:
# Default octal format
od file.txt
# Shows:
# - Offset (octal)
# - Octal bytes
# - ASCII representationAddress display:
# Address in decimal
od -A d file.txt
# -A = address (d = decimal)Hex dump:
# Hexadecimal dump
od -x file.txt
# Shows in hexadecimalDecimal format:
# Decimal format
od -d file.txt
# -d = decimal (shows in decimal)ASCII representation:
# ASCII view
od -c file.txt
# -c = characters (shows ASCII)String format:
# String format
od -S file.txt
# -S = strings (shows strings)Check installation:
# od is part of coreutils
# Usually pre-installed
# Check od
which odThis guide covered od usage, octal dump, and binary data analysis for Arch Linux, CachyOS, and other distributions.
- hexdump Guide - Hex dump alternative
- file Guide - File type detection
- stat Guide - File statistics
-
od Documentation:
man od
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.