查看机器配置命令(linux+solaris)

1、查看内存大小

solari:prtconf -vp | grep Mem

linux :grep MemTotal /proc/meminfo

2、查看硬盘大小

solari:df -k

linux :fdisk -l

[root@ssoldap ~]# fdisk -l

Disk /dev/sda: 146.6 GB, 146685296640 bytes
255 heads, 63 sectors/track, 17833 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         261     2096451   83  Linux
/dev/sda2             262        2871    20964825   83  Linux
/dev/sda3            2872       15925   104856255   83  Linux
/dev/sda4           15926       17833    15326010    5  Extended
/dev/sda5           15926       16186     2096451   82  Linux swap

猜你喜欢

转载自yang8787jie-126-com.iteye.com/blog/841894