7

How to check which Byte Order my system is Using ?

Little Endian OR Big Endian ?

12

Byte Order can be checked by viewing the information about CPU.

Run this command,

lscpu | grep "Byte Order"

You will get to know your Byte Order.

  • 2
    There is no need to use sudo ;) – Ravexina Apr 9 '17 at 16:33
7

You can also use Python:

python -c "import sys; print(sys.byteorder)"

It will print either little or big.

  • please change python to python2 – diralik Jan 19 at 11:34
  • Or just make it version independent by adding parentheses: print(sys.byteorder) – Kyle Jul 8 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.