Method - 1
You can use
uname -p give the architecture of the processor.
With lshw
Long answer: run
Slightly shorter answer:
Output:
Even shorter answer:
Output:
You can use
lscpu
someuser@somelaptop:~$ lscpu
Architecture: i686 # <-- your kernel is 32 bit
CPU op-mode(s): 32-bit, 64-bit # <-- your cpu can handle 32 or 64 bit instructions
CPU(s): 4
Thread(s) per core: 2
Core(s) per socket: 2
CPU socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 37
Stepping: 5
CPU MHz: 1199.000
Virtualisation: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
Further explanation of the Architecture field:X86, i686, or i386 means you are running a 32 bit kernel.
X86_64 , amd64 , or X64 means you are running a 64 bit kernel.
Method -2
uname -p give the architecture of the processor.
X86, i686, or i386 means you are running a 32 bit kernel.
X86_64 , amd64 , or X64 means you are running a 64 bit kernel.
Method -3
With lshw
Long answer: run
sudo lshw
Slightly shorter answer:
sudo lshw -c cpu
Output:
*-cpu
description: CPU
product: AMD Turion(tm) X2 Dual-Core Mobile RM-75
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: Turion X2 Mobile RM-75
slot: Socket M2/S1G1
size: 550MHz
capacity: 4GHz
width: 64 bits
clock: 200MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch osvw skinit hw_pstate lbrv svm_lock nrip_save vmmcall cpufr
Even shorter answer:
sudo lshw -c cpu | grep width
Output:
width: 64 bits
No comments:
Post a Comment