2024-06-26 17:22:42 +02:00
|
|
|
# od
|
|
|
|
|
|
|
|
> Toon bestandsinhoud in octale, decimale of hexadecimale notatie.
|
|
|
|
> Toon optioneel de byte-offsets en/of de afdrukbare weergave voor elke regel.
|
2025-01-18 18:45:33 +05:30
|
|
|
> Meer informatie: <https://www.gnu.org/software/coreutils/manual/html_node/od-invocation.html>.
|
2024-06-26 17:22:42 +02:00
|
|
|
|
|
|
|
- Toon bestand met de standaardinstellingen: octale notatie, 8 bytes per regel, byte-offsets in octale notatie en dubbele regels vervangen door `*`:
|
|
|
|
|
|
|
|
`od {{pad/naar/bestand}}`
|
|
|
|
|
|
|
|
- Toon bestand in uitgebreide modus, d.w.z. zonder dubbele regels te vervangen door `*`:
|
|
|
|
|
2025-05-29 11:36:00 +02:00
|
|
|
`od {{[-v|--output-duplicates]}} {{pad/naar/bestand}}`
|
2024-06-26 17:22:42 +02:00
|
|
|
|
|
|
|
- Toon bestand in hexadecimale notatie (2-byte eenheden), met byte-offsets in decimale notatie:
|
|
|
|
|
2025-05-29 11:36:00 +02:00
|
|
|
`od {{[-t|--format]}} {{x}} {{[-A|--address-radix]}} {{d}} {{[-v|--output-duplicates]}} {{pad/naar/bestand}}`
|
2024-06-26 17:22:42 +02:00
|
|
|
|
|
|
|
- Toon bestand in hexadecimale notatie (1-byte eenheden) en 4 bytes per regel:
|
|
|
|
|
2025-05-29 11:36:00 +02:00
|
|
|
`od {{[-t|--format]}} {{x1}} {{[-w|--width=]}}4 {{[-v|--output-duplicates]}} {{pad/naar/bestand}}`
|
2024-06-26 17:22:42 +02:00
|
|
|
|
|
|
|
- Toon bestand in hexadecimale notatie samen met de tekenweergave, en toon geen byte-offsets:
|
|
|
|
|
2025-05-29 11:36:00 +02:00
|
|
|
`od {{[-t|--format]}} {{xz}} {{[-A|--address-radix]}} {{n}} {{[-v|--output-duplicates]}} {{pad/naar/bestand}}`
|
2024-06-26 17:22:42 +02:00
|
|
|
|
|
|
|
- Lees slechts 100 bytes van een bestand vanaf de 500ste byte:
|
|
|
|
|
2025-05-29 11:36:00 +02:00
|
|
|
`od {{[-N|--read-bytes]}} 100 {{[-j|--skip-bytes]}} 500 {{[-v|--output-duplicates]}} {{pad/naar/bestand}}`
|