Notes

[uname] Find out system Architecture (32-bit vs. 64-bit)

Edit on GitHub


Commands
1uname # Operating System
2uname -a # Kernel version and System Architecture
3uname -m # Machine hardware name, tells whether system is 32-bit or 64-bit
4uname -p # Processor type (usually unknown on modern Unix)
  • i686 or i386 is 32-bit
  • x86_64 is 64-bit
1uname -a
1# Ubuntu 20.04 inside WSL2 on a Windows machine - 64bit
2Linux Panda 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

ARM

 1# Orange Pi Plus 2 running Armbian
 2
 3aamnah@orangepiplus:~$ uname
 4Linux
 5
 6aamnah@orangepiplus:~$ uname -a
 7Linux orangepiplus 3.4.113-sun8i #18 SMP PREEMPT Wed Jan 24 22:10:49 CET 2018 armv7l armv7l armv7l GNU/Linux
 8
 9aamnah@orangepiplus:~$ uname -m
10armv7l
11
12aamnah@orangepiplus:~$ uname -p
13armv7l
  • FYI, ARM v7 (and below) is 32-bit. ARM v8 introduced the 64-bit istruction set.