标签:col linux bank opus blocks ext4 root lock color
显示磁盘使用情况
[hadoopuser@CNSZ443239 ~]$ df 文件系统 1K-块 已用 可用 已用% 挂载点 Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rootvg-root_lv 20642428 15529816 4064036 80% / tmpfs 4031200 72 4031128 1% /dev/shm /dev/mapper/rootvg-was_lv 41284928 180092 39007684 1% /websphere /dev/sda1 495844 39907 430337 9% /boot /dev/mapper/rootvg-tmp_lv 10321208 769716 9027204 8% /tmp 10.14.49.126:/UAT1_shared 104857600 55208960 49648640 53% /home/ap/ods/shared
以inode模式来显示磁盘使用情况
[hadoopuser@CNSZ443239 ~]$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/rootvg-root_lv 1310720 250319 1060401 20% / tmpfs 1007800 3 1007797 1% /dev/shm /dev/mapper/rootvg-was_lv 2621440 11 2621429 1% /websphere /dev/sda1 128016 39 127977 1% /boot /dev/mapper/rootvg-tmp_lv 655360 75 655285 1% /tmp
显示指定类型磁盘
[hadoopuser@CNSZ443239 ~]$ df -t ext4 文件系统 1K-块 已用 可用 已用% 挂载点 Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rootvg-root_lv 20642428 15529992 4063860 80% / /dev/mapper/rootvg-was_lv 41284928 180092 39007684 1% /websphere /dev/sda1 495844 39907 430337 9% /boot /dev/mapper/rootvg-tmp_lv 10321208 769716 9027204 8% /tmp
列出各文件系统的i节点使用情况
[hadoopuser@CNSZ443239 ~]$ df -ia Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/rootvg-root_lv 1310720 250319 1060401 20% / proc 0 0 0 - /proc sysfs 0 0 0 - /sys devpts 0 0 0 - /dev/pts tmpfs 1007800 3 1007797 1% /dev/shm /dev/mapper/rootvg-was_lv 2621440 11 2621429 1% /websphere
列出文件系统的类型
[hadoopuser@CNSZ443239 ~]$ df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/mapper/rootvg-root_lv ext4 20642428 15529976 4063876 80% / tmpfs tmpfs 4031200 72 4031128 1% /dev/shm /dev/mapper/rootvg-was_lv ext4 41284928 180092 39007684 1% /websphere /dev/sda1 ext4 495844 39907 430337 9% /boot /dev/mapper/rootvg-tmp_lv ext4 10321208 769716 9027204 8% /tmp 10.14.49.126:/UAT1_shared nfs 104857600 55207936 49649664 53% /home/ap/ods/shared 10.14.49.123:/UAT1_data_public_ods nfs 1610612736 1242461184 368151552 78% /data_public_ods 10.14.49.125:/UAT1_data_to_ods nfs 2147483648 1597957120 549526528 75% /data_to_ods 10.14.49.127:/UAT1_PABank_DCC nfs 1610612736 1326860288 283752448 83% /PABank_DCC
以更易读的方式显示目前磁盘空间和使用情况
[hadoopuser@CNSZ443239 ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-root_lv 20G 15G 3.9G 80% / tmpfs 3.9G 72K 3.9G 1% /dev/shm /dev/mapper/rootvg-was_lv 40G 176M 38G 1% /websphere /dev/sda1 485M 39M 421M 9% /boot /dev/mapper/rootvg-tmp_lv 9.9G 752M 8.7G 8% /tmp 10.14.49.126:/UAT1_shared 100G 53G 48G 53% /home/ap/ods/shared 10.14.49.123:/UAT1_data_public_ods 1.5T 1.2T 352G 78% /data_public_ods 10.14.49.125:/UAT1_data_to_ods 2.0T 1.5T 525G 75% /data_to_ods 10.14.49.127:/UAT1_PABank_DCC 1.5T 1.3T 271G 83% /PABank_DCC [hadoopuser@CNSZ443239 ~]$ df -H --等于"-h",但是计算式,1K=1000,而不是1K=1024 Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-root_lv 22G 16G 4.2G 80% / tmpfs 4.2G 74k 4.2G 1% /dev/shm /dev/mapper/rootvg-was_lv 43G 185M 40G 1% /websphere /dev/sda1 508M 41M 441M 9% /boot /dev/mapper/rootvg-tmp_lv 11G 789M 9.3G 8% /tmp 10.14.49.126:/UAT1_shared 108G 57G 51G 53% /home/ap/ods/shared 10.14.49.123:/UAT1_data_public_ods 1.7T 1.3T 377G 78% /data_public_ods 10.14.49.125:/UAT1_data_to_ods 2.2T 1.7T 563G 75% /data_to_ods 10.14.49.127:/UAT1_PABank_DCC 1.7T 1.4T 291G 83% /PABank_DCC
只显示本地文件系统
[hadoopuser@CNSZ443239 ~]$ df -lh Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-root_lv 20G 15G 3.9G 80% / tmpfs 3.9G 72K 3.9G 1% /dev/shm /dev/mapper/rootvg-was_lv 40G 176M 38G 1% /websphere /dev/sda1 485M 39M 421M 9% /boot /dev/mapper/rootvg-tmp_lv 9.9G 752M 8.7G 8% /tmp
标签:col linux bank opus blocks ext4 root lock color
原文地址:https://www.cnblogs.com/sea-stream/p/10345839.html