Tuesday, November 29, 2011

Little or Big

execute following command on linux shell :
$ echo -n I | od -to2 | head -n1 | cut -f2 -d" " | cut -c6

if the output is 1 then its big endian otherwise its little endian.

Resource : http://serverfault.com/questions/163487/linux-how-to-tell-if-system-is-big-endian-or-little-endian

No comments:

Post a Comment