Linux系统--查看磁盘空间

1)df -hl

说明: -h  以G为单位显示

-l 不显示NFS挂载

例如:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              28G  3.9G   22G  15% /
/dev/sda3             790G   89G  661G  12% /home
tmpfs                  12G     0   12G   0% /dev/shm

 

2)fdisk -l  可以显示总量


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3648    29295616   83  Linux
/dev/sda2           13055       15143    16779892+  82  Linux swap / Solaris
/dev/sda3           15144      121601   855123885   83  Linux
/dev/sda4            3648       13054    75557889    5  Extended
/dev/sda5            3648       13054    75557888   8e  Linux LVM

Partition table entries are not in disk order

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值