linux系統下看所需要的系統資訊

mengbing1990發表於2016-11-17
    

檢視系統CPU 記憶體 版本等資訊



檢查cpu:
[root@localhost ~]# more /proc/cpuinfo | grep "model name"
model name      : Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
model name      : Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
[root@localhost ~]# grep "model name" /proc/cpuinfo | cut -f2 -d:
 Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
 Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
[root@localhost ~]# 
檢查實體記憶體:
[root@localhost ~]# grep MemTotal /proc/meminfo
MemTotal:        2505184 kB
[root@localhost ~]# 
[root@localhost ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           2446         361        1406           8         678        2016
Swap:          2559           0        2559
[root@localhost ~]# 
檢查OS是否64位
[root@localhost ~]# getconf LONG_BIT
64
[root@localhost ~]# echo $HOSTTYPE
x86_64
[root@localhost ~]# uname -a
Linux lunar1 3.8.13-55.1.6.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# 
  
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[root@localhost ~]# cat /etc/oracle-release 
Oracle Linux Server release 7.1
其他檢視系統資訊的命令:
lsb_release -a

檢查網路卡介面和IP資訊:




[root@Ahost ~ ]Thu Nov 17 16:19# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 00:0c:29:5d:13:a0 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 00:0c:29:5d:13:aa brd ff:ff:ff:ff:ff:ff
[root@Ahost ~ ]Thu Nov 17 16:20# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 00:0c:29:5d:13:a0 brd ff:ff:ff:ff:ff:ff
    inet 172.30.149.158/24 brd 172.30.149.255 scope global eth0
    inet6 fe80::20c:29ff:fe5d:13a0/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 00:0c:29:5d:13:aa brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe5d:13aa/64 scope link
       valid_lft forever preferred_lft forever

資料%EF%BC%88centosrheloel%EF%BC%89%E5%92%8Coracle-rac%E7%8E%AF%E5%A2%83%E7%B3%BB%E5%88%97-1-%E7%AE%80%E4%BB%8B.html

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29551564/viewspace-2128640/,如需轉載,請註明出處,否則將追究法律責任。

相關文章