root@webserver ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release: 5.2
Codename: Tikanga
[root@webserver ~]# cat /etc/redhat-release
[root@webserver ~]# uname -r
[root@webserver ~]# uname -a
查看的是redhat的版本
more /etc/redhat-release
more /etc/issue
不仅仅是linux的版本
uname -a
uname -r
lsb_release -a
more /proc/version
ps:不仅仅是linux的版本好强啊
Bios:
dmidecode |more --其中能看到服务器的制造商等信息
cpu :
more /proc/cpuinfo
more /proc/cpuinfo |grep "physical "|sort -u --cpu数量
more /proc/cpuinfo |grep "physical "|grep 0|wc -l --单个cpu核心数量
more /proc/cpuinfo |head -10 --cpu的info,类型和主频、cache等
mem:
free --内存和swap
more /proc/meminfo
top
hd:
fdisk -l
parted
more /etc/scsi/scsi --scsi接口的情况下
阅读(6215) | 评论(0) | 转发(1) |