Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command that would let me see ASCII values of characters outputted from a program?

Say I pipe in a NUL character and a p, could I get a 0 and a 112 out?

share|improve this question
Probably hexdump or printf. – Bob Jun 23 '13 at 9:32

You can use od -t d1 to output the ascii values of a file. When using this, he starts the first column with the offset within the stream (the adress), when you dont need it, you can pipe it into cut -d \ -f 2- or similar.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.