Home Server Tutorials 4 Commands To Check Linux System Version

4 Commands To Check Linux System Version

The following is the method to check whether your existing Linux is 64-bit or 32-bit, the purpose to know the Linux version is when you are about to install a certain software whether the software supports your Linux version or not. And additionally this will add more knowledge for us too.

The following is the commands to check your Linux system version:

Uname command

uname -i

The output:

  • x86_64 = 64-bit
  • i686 = 32-bit

uname is the command to view your system information, such as the Kernel version, operating system and others man uname.

Arch command

You can also run the arch command that will give the same result as using the uname -m command.

Getconf command

The simpler way and clear is using getconf command.

getconf LONG_BIT

The output:

  • 64 = 64 bit
  • 32 = 32 bit

lscpu command

The following is lscpu or command to show about information such as CPU architecture. But the OpenVZ VPS usually doesn’t support this command.


The output—more or less—like this:

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               62
Model name:          Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
Stepping:            4
CPU MHz:             2399.998
BogoMIPS:            4799.99
Virtualization:      VT-x
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            15360K
NUMA node0 CPU(s):   0
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl cpuid pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms xsaveopt

Okay that’s the entire commands you can use to check your Linux system.


Please enter your comment!
Please enter your name here