Questions tagged [od]

37 questions
5
votes
1 answer

Interpreting octal dump without options

$ echo "hello" | od 0000000 062550 066154 005157 0000006 I know that the first column represents the byte offset. But I don't see how the other numbers are formed. According to man the above should be "octal bytes". However the option -b is…
2
votes
1 answer

Understanding `od -c` output

I've got a text file that I'm trying to debug an encoding issue in. I ran the file through od -c and got the following output: 3457540 , " t e x t " : " 302 241 Q u 303 251 My understanding from the man page is that -c…
2
votes
1 answer

understanding od -a option

In Linux, the --type a option in od is explained as --type=       Select the format in which to output the file data … a      named character, ignoring high-order bit … Only the least significant seven bits of each byte is used; the…
erch
  • 5,030
1
vote
1 answer

od command to print all the values

I am running the od command as od -b myfile to convert a file I have into image pixels. I need to see all the values but because they are too many the command prints the following: 0000000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000…
Michail
  • 13
1
vote
2 answers

What does the '005' mean in the output of linux command od?

I have a file called input_file, the following is the contents of input_file: $ cat input_file 1 2 3 4 5 6 7 8 9 then I run the following command: $ od -to2 input_file Output: 0000000 005061 005062 005063 005064…
Ren
  • 273
1
vote
1 answer

od prints extra value

I have a binary file containing 4-byte floats. I want to print these floats using od. However, od prints one additional value at the very first position. What is going on here? The file looks like this: xxd test | head -1 0000000: 932a 6541 7cdf…
-2
votes
1 answer

How does od treat symbols after `\x7f`?

The following command passes to od symbols from \x00 to \xff: $ seq 0 255 | awk '{printf("%c", $0)}' | od -c But what I get is: 0000000 \0 001 002 003 004 005 006 \a \b \t \n \v \f \r 016 017 0000020 020 021 022 023 024 025 026 027 030 031…
x-yuri
  • 3,373