https://itsiti.com/how-to-determine-linux-os-endian-big-endian-little-endian/

Command 1

echo I | tr -d [:space:] | od -to2 | awk 'FNR==1{ print substr($2,6,1)}'

Command 2

printf '\1' | od -dAn

Command 3

lscpu | grep Endian

Command 4

echo -n I | od -to2 | awk '{ print substr($2,6,1); exit}'

Command 5

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