1. Vendor and model of the processor:
$ cat /proc/cpuinfo | grep vendor | uniq
endor_id : GenuineIntel
2. Find the model name that can be used:
$ cat /proc/cpuinfo | grep 'model name' | uniq
model name : Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz
3. The lscpu command give our reports about the architecture:
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
....
....
or with python:
import platform
import multiprocessing as mp
def print_sysinfo():
print('Python version :', platform.python_version())
print('compiler :', platform.python_compiler())
print('platform-node :', platform.uname().node)
print('platform-version :', platform.uname().version)
print('linux_d :', platform.linux_distribution())
print('\nsystem :', platform.system())
print('release :', platform.release())
print('machine :', platform.machine())
print('processor :', platform.processor())
print('CPU count :', mp.cpu_count())
print('interpreter :', platform.architecture()[0])
print('\n\n')
print_sysinfo()
comments are disabled for this article