How to view cpu information in linux system
This article mainly introduces how to view cpu information in linux system. In daily operation, I believe many people have doubts about how to view cpu information in linux system. Xiaobian consulted all kinds of information and sorted out simple and easy to use operation methods. I hope to answer your doubts about how to view cpu information in linux system. Next, please follow the small series to learn together!
Many times, we want to know the CPU information of the machine, but it is linux, and do not know where to look, how to do this? Here I will teach you how to view CPU information under Linux.
First, let me introduce a document. This is the/proc directory file, which is a memory mapped file. If we look at the size of df, we can see that it is simply a memory map, not stored in our memory, so to speak, it is real-time data in our memory. It is a true portrayal of memory.
2, so how do we check CPU information, then we need to use the information saved in memory. We cat /proc/cpuinfo to see
3. Let's see what exactly is it?
4 What is the model name? Schema name.
5 What if you want to write it as a shell? touch show_cpu.sh
6. After vim is opened, write the following #!/ bin/bash, cat /proc/cpuinfo, then press ESC, type:wq, save exit
7. Then set it to run permissions, chmod 777 show_cpu.sh./ show_cpu.sh
At this point, on the "linux system how to view cpu information" learning is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!