Linux命令:free & df & du !

free:查看内存使用情况。
-m:显示的单位是以MB来显示。

-t:在输出的最终结果中显示物理内存与swap的总量。


[root@db ~]# free -m
             total       used       free     shared    buffers     cached
Mem:           503        195        307          0         13        149
-/+ buffers/cache:         33        469
Swap:         1027          0       1027

[root@db ~]# free -mt
             total       used       free     shared    buffers     cached
Mem:           503        195        307          0         13        149
-/+ buffers/cache:         33        469
Swap:         1027          0       1027
Total:        1530        195       1335

说明:
Mem:物理内存。
Swap:虚拟内存。
total:总量。
used:已经使用的量。
free:剩余可用的量。
shared:共享内存。
buffers:用于缓冲存储器。
cache:用于高速缓存。
-------------------------------------------------------------------------
df:列出文件系统的整体磁盘使用量。
[root@linux ~]# df -h
文件系统              容量  已用 可用 已用% 挂载点
/dev/sda3              19G   11G  6.6G  63% /
/dev/sda1              99M   12M   83M  12% /boot
tmpfs                 252M     0  252M   0% /dev/shm

-------------------------------------------------------------------------
du:评估文件系统的磁盘使用量(常用于评估目录所占容量)。
[root@linux oracle]# du -hs flash_recovery_area/
392M    flash_recovery_area/
[root@linux oracle]# du -h flash_recovery_area/
4.0K    flash_recovery_area/ORCL/onlinelog
294M    flash_recovery_area/ORCL/archivelog/2011_11_18
98M     flash_recovery_area/ORCL/archivelog/2011_11_19
392M    flash_recovery_area/ORCL/archivelog
392M    flash_recovery_area/ORCL
392M    flash_recovery_area/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值