说结论:我本地vagrant虚拟机是小端序的
方法一
echo -n I | od -o | head -n1 | cut -f2 -d" " | cut -c6
[vagrant@vm-node1:tmp]$ echo -n I | od -o | head -n1 | cut -f2 -d" " | cut -c6
1
方法二
echo -n I | od -o | head -n1 | awk '{print $2}'| cut -c6
[vagrant@vm-node1:tmp]$ echo -n I | od -o | head -n1 | awk '{print $2}'| cut -c6
1
方法三
lscpu | grep -i byte
[vagrant@vm-node1:tmp]$ lscpu | grep -i byte
Byte Order: Little Endian
方法四
dpkg-architecture | grep -i end
[vagrant@vm-node1:tmp]$ dpkg-architecture | grep -i end
DEB_BUILD_ARCH_ENDIAN=little
DEB_HOST_ARCH_ENDIAN=little
DEB_TARGET_ARCH_ENDIAN=little