毕业论文

当前位置: 毕业论文 > 范文 >

linux查看硬件信息命令(7)

时间:2021-11-24 20:08来源:优尔论文
(6)查看硬盘使用情况 [root@Master ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext4 99G 561M 93G 1% / tmpfs tmpfs 63G 76K 63G 1% /dev/shm /dev/sda1 ext4 45M 38M 4。

 (6)查看硬盘使用情况

 

 

 

[root@Master ~]# df -hT

Filesystem     Type   Size  Used Avail Use% Mounted on

/dev/sda2      ext4    99G  561M   93G   1% /

tmpfs          tmpfs   63G   76K   63G   1% /dev/shm

/dev/sda1      ext4    45M   38M  4。9M  89% /boot

/dev/sda3      ext4    50G   52M   47G   1% /home

/dev/sda6      ext4    13G   34M   13G   1% /tmp

/dev/sda7      ext4    99G   21G   73G  23% /usr

/dev/sdb1      ext4    84T   41T   40T  51% /PureDisk

 

 

 (7) 硬盘检测命令smartctl

 

 

 

[root@Master ~]# smartctl -a /dev/sda

smartctl 5。43 2012-06-30 r3573 [x86_64-linux-2。6。32-642。el6。x86_64] (local build)

Copyright (C) 2002-12 by Bruce Allen, http://smartmontools。sourceforge。net

 

Vendor:               HP     

Product:              LOGICAL VOLUME 

Revision:             3。56

User Capacity:        299,966,445,568 bytes [299 GB]

Logical block size:   512 bytes

Logical Unit id:      0x600508b1001cc8a1b9ec4dacc5ab35dc

Serial number:        PDNNK0BRH9U0AG 

Device type:          disk

Local Time is:        Mon Feb  5 13:13:33 2018 CST

Device supports SMART and is Enabled

Temperature Warning Disabled or Not Supported

SMART Health Status: OK

 

Error Counter logging not supported

Device does not support Self Test logging

 

 

 

 

五、查看网卡信息

 

(1)查看网卡硬件信息

[root@Master ~]#  lspci | grep -i 'eth'

 

 

   (2)查看系统的所有网络接口

 

[root@Master ~]# ifconfig -a

[root@Master ~]# ip link show

    (3)查看某个网络接口的详细信息,例如eth0的详细参数和指标

 

 

 

[root@Master ~]# ethtool eth0

Settings for eth0:

        Supported ports: [ FIBRE ]

        Supported link modes:   10000baseT/Full 

        Supported pause frame use: No

        Supports auto-negotiation: No

        Advertised link modes:  10000baseT/Full 

        Advertised pause frame use: No

        Advertised auto-negotiation: No

        Speed: 10000Mb/s

        Duplex: Full

        Port: FIBRE

        PHYAD: 0

        Transceiver: external

        Auto-negotiation: off

        Supports Wake-on: d linux查看硬件信息命令(7):http://www.youerw.com/fanwen/lunwen_85480.html

------分隔线----------------------------
推荐内容