Files
oldlinux-files/Minix/1.7.5/MANUALS/CAT0/OD
2024-02-19 00:21:39 -05:00

66 lines
1.0 KiB
Plaintext

Command: od - octal dump
Syntax: od [-bcdhox] [file] [ [+] offset [.][b] ]
Flags: -b Dump bytes in octal
-c Dump bytes as ASCII characters
-d Dump words in decimal
-h Print addresses in hex (default is octal)
-o Dump words in octal (default)
-v Verbose (list duplicate lines)
-x Dump words in hex
Examples: od -ox file # Dump file in octal and hex
od -d file +1000 # Dump file starting at byte 01000
od -c file +10.b # Dump file starting at block 10
Od dumps a file in one or more formats. If file is missing, stdin
is dumped. The offset argument tells od to skip a certain number of
bytes or blocks before starting. The offset is in octal bytes, unless
it is followed by a '.' for decimal or b for blocks or both.