Skip to navigation
How to see the binary bits 0 and 1 of a file
11.09.25
Let's say you have a file with letter l in it. ## use the program xxd to see its 0 and 1 ``` xxd -b l.txt ``` the output will be ``` 00000000: 01101100 00001010 l. ``` * 01101100 stands for l * 00001010 stands for . ## how to get the letter? 01101100 is calculated to the number 108 0 1 1 0 1 1 0 0 0+64+32+0+8+4+0+0=108 and 108 in the ASCII Code table represents the letter l ## other word example xxd -b hello.txt 00000000: 01101000 01100101 01101100 01101100 01101111 00001010 hello.
https://man.freebsd.org/cgi/man.cgi?query=xxd
Reply
Anonymous
Information Epoch 1759908331
Small is beautiful.
Home
Notebook
Contact us