文档详情

Linux 查看CPU信息、机器型号等硬件信息(国外英文资料).doc

发布:2017-06-05约1.61万字共22页下载文档
文本预览下载声明
Linux 查看CPU信息、机器型号等硬件信息(国外英文资料) Test the machines hardware information: View the CPU information (model) # cat/proc/cpuinfo | grep name | cut - f2-d: | uniq-c Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz (see eight logical cpus, also the CPU model) # cat/proc/cpuinfo | grep physical | uniq-c 4 physical id: 0 Physical id: 1 (the instructions are actually two cpus of four cores) # getconf LONG_BIT 32 (note that the current CPU runs in 32bit mode, but doesnt mean the CPU does not support 64bit) # cat/proc/cpuinfo | grep flags | grep lm | wc -l 8 (the result is greater than 0, which indicates support for 64bit. Lm means long mode, and lm is 64bit) Look at the CPU details again, but most of us dont care. # dmidecode | grep Processor Information View the stored information # cat/proc/meminfo # uname -a Linux euis1.2.69-55. ELsmp # 1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i386 GNU/Linux (view the current operating system kernel information) # cat/etc/issue | grep Linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5) (view the current operating system release information) View machine type # dmidecode | grep Product Name View the network card information # dmesg | grep-i eth Linux looks at CPU and memory usage In the process of system maintenance, you may need to view CPU utilization at any time, and analyze the needs of the system according to the relevant information. In CentOS, you can view CPU usage by the top command. After running the top command, the CPU will use state with full screen display, and will be in dialogue mode - use command based on top, can control the display mode and so on. The command to exit top is q (tapping the q key at the top run). Operation instance: Enter top in the command line You can start top The full screen mode of top is divided into three parts: the system information bar, the command input bar, and the process list bar. Part 1 - the top system information column: The first line (top) : 00:11:04 is the current moment of the system; 3:
显示全部
相似文档