Session and utilities
The od command
Dumps a file in octal (or other formats) showing its bytes, useful to inspect raw data.
Syntax
od [-c] [archivo]Most useful options
-cShows the characters instead of octal-xShows in hexadecimalCopy-ready examples
$ echo hola | od -cSee bytes and charactersYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- The default output is octal, unusual today: use -c or -x to read it better.
FAQ
od or xxd?
od is the Unix classic; xxd is handier to see hex and text at once.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course