SwapTotal: 16777212 kB
SwapFree: 16737536 kB
Dirty: 180 kB
Writeback: 0 kB
AnonPages: 16999324 kB
Mapped: 149020 kB
Shmem: 172 kB
(6)Linux 查看内存的使用情况
[root@Master ~]# free -m // -b,-k,-m,-g show output in bytes, KB, MB, or GB
total used free shared buffers cached
Mem: 128806 123407 5398 0 1015 103474
-/+ buffers/cache: 18918 109888
Swap: 16383 38 16345
四、查看硬盘信息
(1)查看挂接的分区状态
[root@Master ~]# fdisk -l |grep Disk
(2)查看硬盘和分区分布
[root@Master ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 279。4G 0 disk
├─sda1 8:1 0 50M 0 part /boot
├─sda2 8:2 0 100G 0 part /
├─sda3 8:3 0 50G 0 part /home
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 16G 0 part [SWAP]
├─sda6 8:6 0 13。3G 0 part /tmp
└─sda7 8:7 0 100G 0 part /usr
sdb 8:16 0 83。7T 0 disk
└─sdb1 8:17 0 83。7T 0 part /PureDisk
(3)查看硬盘和分区的详细信息
[root@Master ~]# fdisk -l
Disk /dev/sda: 300。0 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x000384d9
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7 51200 83 Linux
Partition 1 does not end on cylinder boundary。
/dev/sda2 7 13061 104857600 83 Linux
/dev/sda3 13061 19588 52428800 83 Linux
/dev/sda4 19588 36469 135597056 5 Extended linux查看硬件信息命令(5):http://www.youerw.com/fanwen/lunwen_85480.html