linux查看网卡,硬盘

查看网卡信息
[root@test lm_sensors-3.3.3]# lspci |grep Ethernet
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57760 Gigabit Ethernet PCIe (rev 01)

查看内存和cpu最直接最常用的命令:
[root@test lm_sensors-3.3.3]# free
total used free shared buffers cached
Mem: 1657596 1390448 267148 0 197948 680304
-/+ buffers/cache: 512196 1145400
Swap: 3604472 0 3604472

[root@test lm_sensors-3.3.3]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
stepping : 5
cpu MHz : 933.000
cache size : 3072 KB
physical id : 0 #physical id不重复的数量,即为物理cpu数量
siblings : 4
core id : 0
cpu cores : 2 #cpu核数
apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc arat pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips : 4788.13
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: [8]

查看硬盘信息
[root@test lm_sensors-3.3.3]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
286G 17G 255G 7% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 810M 0 810M 0% /dev/shm

[root@test lm_sensors-3.3.3]# hdparm -i /dev/sda
/dev/sda:
Model=TOSHIBA MK3265GSX , FwRev=GJ002J , SerialNo= 51KXT85AT
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7
* signifies the current active mode

发表评论

邮箱地址不会被公开。 必填项已用*标注