How to check which Byte Order my system is Using ?
Little Endian OR Big Endian ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityByte 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.
You can also use Python:
python -c "import sys; print(sys.byteorder)"
It will print either little
or big
.
print(sys.byteorder)