Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to check which Byte Order my system is Using ?
Little Endian OR Big Endian ?
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.
You can also use Python:
python -c "import sys; print(sys.byteorder)"
It will print either little or big.