Linux od Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux od Guide
Complete beginner-friendly guide to od on Linux, covering Arch Linux, CachyOS, and other distributions including octal dump, file inspection, and binary data analysis.
Table of Contents
od Basics
Octal Dump
Basic usage:
# Octal dump
od file.txt
# Shows file in octal format
Hexadecimal
Hex format:
# Hexadecimal format
od -x file.txt
# -x = hexadecimal (shows in hex)
Octal Dump
Default Format
Octal output:
# Default octal format
od file.txt
# Shows:
# - Offset (octal)
# - Octal bytes
# - ASCII representation
Address Format
Address display:
# Address in decimal
od -A d file.txt
# -A = address (d = decimal)
Different Formats
Hexadecimal
Hex dump:
# Hexadecimal dump
od -x file.txt
# Shows in hexadecimal
Decimal
Decimal format:
# Decimal format
od -d file.txt
# -d = decimal (shows in decimal)
File Inspection
ASCII View
ASCII representation:
# ASCII view
od -c file.txt
# -c = characters (shows ASCII)
String View
String format:
# String format
od -S file.txt
# -S = strings (shows strings)
Troubleshooting
od Not Found
Check installation:
# od is part of coreutils
# Usually pre-installed
# Check od
which od
Summary
This guide covered od usage, octal dump, and binary data analysis for Arch Linux, CachyOS, and other distributions.
Next Steps
- 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.