How to tell if a Linux system is big endian or little endian?
On a Big Endian-System (Solaris on SPARC) $ echo -n I | od -to2 | head -n1 | cut -f2 -d” ” | cut -c6 0 On a little endian system (Linux on x86) $ echo -n I | od -to2 | head -n1 | cut -f2 -d” ” | cut -c6 1 The solution … Read more