Home > Articles

  • Print
  • + Share This
This chapter is from the book

od

The od command “dumps” files into either octal format or another format. By default, it converts data into octal format:

[student@localhost ~]$ more people.txt
1 tom
2 nick
3 sue
4 tim
[student@localhost ~]$ od people.txt
0000000 020061 067564 005155 020062 064556 065543 031412 071440
0000020 062565 032012 072040 066551 000012
0000031

Important options include the following:

Option Description
-t Used to specify the output format: “d” for decimal, “f” for floating point, and “x” for hexadecimal.
-N x Limits the output to x number of bytes.
  • + Share This
  • 🔖 Save To Your Account