各个linux版本间命令可能不同 以下仅供参考 1, 主板信息 .查看主板的序列号 -------------------------------------------------- #使用命令 dmidecode | grep -i 'serial number' #查看板卡信息 cat /proc/pci -------------------------------------------------- 2, cpu信息 -------------------------------------------------- #通过/proc文件系统 1) cat /proc/cpuinfo #通过查看开机信息 2) dmesg | grep -i 'cpu' # 3)dmidecode -t processor -------------------------------------------------- 3, 硬盘信息 -------------------------------------------------- #查看分区情况 fdisk -l #查看大小情况 df -h #查看使用情况 du -h # hdparm -I /dev/sda # dmesg | grep sda -------------------------------------------------- 4, 内存信息 -------------------------------------------------- 1) cat /proc/meminfo 2) dmesg | grep mem 3) free -m 4) vmstat 5) dmidecode | grep -i mem -------------------------------------------------- 5, 网卡信息 -------------------------------------------------- 1) dmesg | grep -i 'eth' 2) cat /etc/sysconfig/hwconf | grep -i eth 3) lspci | grep -i 'eth' -------------------------------------------------- 6, 鼠标键盘和USB信息 查看键盘和鼠标:cat /proc/bus/input/devices 查看USB设备:cat /proc/bus/usb/devices 查看各设备的中断请求(IRQ):cat /proc/interrupts 7, 显卡信息 -------------------------------------------------- 1)lspci |grep -i 'VGA' 2)dmesg | grep -i 'VGA' -------------------------------------------------- 8, 声卡信息 -------------------------------------------------- 1)lspci |grep -i 'VGA' 2)dmesg | grep -i 'VGA' -------------------------------------------------- -------------------------------------------------------------------------------- 1).查看当前处理器的类型和速度(主频) # psrinfo –v 3).查看硬盘物理信息(vendor, RPM, Capacity) # iostat –E 4).查看磁盘的几何参数和分区信息 # prtvtoc /dev/rdsk/c0t0d0s0 6).显示cpu使用率最高的进程 # ps –eo pid,pcpu,args | sort +1n 该命令输出当前系统进程的pid, CPU占用率及命令描述,并以pcpu来排序 7).显示内存占用率最高的进程 # ps –eo pid,vsz,args | sort +1n 该命令输出当前系统进程的pid,内存占用率及命令描述,并以vsz来排序 11).测定当前的显示器刷新频率 /usr/sbin/ffbconfig –rev \? 12).查看系统配置 # /usr/platform/sun4u/sbin/prtdiag –v
查看linux 各种参数信息
最新推荐文章于 2023-07-06 15:14:07 发布