Linux查看监控系统/硬件资源

                                                                                                                                                                                                                                                                              CPU

实时CPU频率:

watch -n 1 grep "cpu MHz" /proc/cpuinfo

watch -n 1 cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

CPU能够运行的最大频率:

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

CPU能够运行的最小频率:

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

查看核心总数:

cat /proc/cpuinfo

查看物理CPU的核数:

cat /proc/cpuinfo| grep "cpu cores"| uniq

查看逻辑CPU的核数:

cat /proc/cpuinfo| grep "processor"| wc -l

查看物理CPU个数:

cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc –l

查看CPU型号:

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

                                                                                                                                                                                                                                                                              MEM

 查看内存型号、品牌、频率: 

dmidecode -t memory

                                                                                                                                                                                                                                                                               系统

 查看系统运行时间: 

cat /proc/uptime

 查看内核版本:

cat /proc/version

显示当前操作系统名称:

uname –a

查看CentOS版本:

rpm -q centos-release

cat /etc/redhat-release
posted @ 2020-10-28 15:05  子小逗子  Views(314)  Comments(0Edit  收藏  举报