Name

od — stdin  stdout  - datei  -- opt  --help  --version

Synopsis

od [optionen] [dateien]

Wenn Sie eine Binärdatei betrachten wollen, sollten Sie od (Octal Dump) dafür in Betracht ziehen. Es kopiert eine oder mehrere Dateien auf die Standardausgabe, wobei es deren Daten in ASCII, oktal, dezimal, hexadezimal oder Fließkomma, in verschiedenen Größen (Byte, Short, Long) anzeigt. So zeigt z.B. der Befehl

$ od -w8 /usr/bin/who
0000000 042577 043114 000401 000001
0000010 000000 000000 000000 000000
0000020 000002 000003 000001 000000
...

die Bytes in der Binärdatei /usr/bin/who im Oktalformat an, und zwar acht Bytes pro Zeile. Die Spalte ganz links enthält den Dateioffset jeder Zeile, wieder im Oktalformat.

Falls Ihre Binärdatei auch Text enthält, sollten ...

Get Linux kurz & gut, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.