od Command Examples

Display file contents in octal, decimal or hexadecimal format. Optionally display the byte offsets and/or printable representation for each line. More information: https://www.gnu.org/software/coreutils/od.

od {{path/to/file}}

od -v {{path/to/file}}

od --format={{x}} --address-radix={{d}} -v {{path/to/file}}

od --format={{x1}} --width={{4}} -v {{path/to/file}}

od --format={{xz}} --address-radix={{n}} -v {{path/to/file}}

od --read-bytes 100 --skip-bytes=500 -v {{path/to/file}}