I\'m going though a computers system course and I\'m trying to establish, for sure, if my AMD based computer is a little endian machine? I believe it is because it
Assuming you have Python installed, you can run this one-liner, which will print "little" on little-endian machines and "big" on big-endian ones:
python -c "import struct; print 'little' if ord(struct.pack('L', 1)[0]) else 'big'"