I saw this question Why does Ctrl-D (EOF) exit the shell? and wanted to try the example on the second answer. So i've created a file and used hexdump:
federico@home ~ $ cat > test.txt
prova
^C
federico@home ~ $ hexdump test.txt
0000000 7270 766f 0a61
0000006
The second row has '6' in the end, and if i try to use http://www.rapidtables.com/convert/number/hex-to-ascii.htm to decode from hex to ascii i get a strange letters order. Why does this happen? Thanks