[Linux/Android]如何查看设备的CPU架构
1.Linux PC:
1.1 uname -a 命令
$ uname -a
Linux tssh-QiTianM415-N000 4.15.0-133-generic #137~16.04.1-Ubuntu SMP Fri Jan 15 02:55:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
1.2 arch命令
$ arch
x86_64
上述PC是X86架构
2.Android Phone:
$ adb shell cat /proc/cpuinfo
Processor : AArch64 Processor rev 4 (aarch64)
上述Phone是aarch即ARM架构