How to Check CPU Information on Linux | lscpu & /proc/cpuinfo Explained

Опубликовано: 13 Май 2026
на канале: pounter
17
1

#linux #cpu #hardware #console #bash #guide
In this quick Linux tutorial, learn how to check detailed CPU information using simple terminal commands! Discover how to get your CPU model, architecture, number of cores, and more with the lscpu command and by exploring the /proc/cpuinfo file. Perfect for Linux beginners and enthusiasts looking to get deeper hardware insights from the command line.

Commands covered:
0:01 ```lscpu```
0:09 ```cat /proc/cpuinfo```
0:19 ```nproc```
0:25 ```lscpu | grep "^CPU(s):"```
0:37 ```lscpu | grep "Model name"```
0:44 ```cat /proc/cpuinfo | grep "model name" | head -1```
1:01 ```uname -m```
1:10 ```sudo dmidecode -t processor```
1:18 ```lscpu | grep MHz && cat /proc/cpuinfo | grep "cpu MHz"```
1:27 ```scpu | grep cache```
1:34 ```lscpu | grep "Thread"```
1:42 ```cat /proc/cpuinfo | grep flags | head -1 | grep "avx"```
1:58 ```echo "Physical cores: $(lscpu | grep "Core(s)" | awk '{print $4}')" && echo "Logical cores: $(nproc)"```