display_cpu.sh

#!/bin/bash

awk '/vendor_id/{print $3}' /proc/cpuinfo | uniq
  • 1.
  • 2.
  • 3.

验证:

[root@logstash ~]# sh display_cpu.sh 
GenuineIntel
[root@logstash ~]#
  • 1.
  • 2.
  • 3.