od
FilesAdvanced In simulator In real LinuxDump files in octal, hex and other formats
Name: od = octal dump
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
od shows every byte of a file in octal (the default), hex, decimal or as characters, ideal for spotting invisible characters such as newlines, tabs or Windows \r.
Syntax
od [OPTION]... [FILE]...Common options
| -c | Show characters, including \n and friends |
| -x | Hexadecimal |
| -t / --format TYPE | The output format, e.g. -t x1 (hexadecimal, one byte at a time) |
| -A x | Hex offsets |
| -N / --read-bytes BYTES | Read at most BYTES bytes |
| -j / --skip-bytes BYTES | Skip the first BYTES bytes |
| -v / --output-duplicates | Show repeated lines too (normally replaced by *) |
Examples
$ echo hi | od -c
See every byte, newline included
Explain