Skip to content

Linux od Guide

Mattscreative edited this page Nov 20, 2025 · 2 revisions

🔍 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

  1. od Basics
  2. Octal Dump
  3. Different Formats
  4. File Inspection
  5. Troubleshooting

🔍 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


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally