我有
-bash-4.1$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 16126920 8557072 6750648 56% /
tmpfs 33026676 0 33026676 0% /dev/shm
/dev/sda5 151897244 51004788 93176464 36% /state/partition1
/dev/sda2 4031680 358884 3467996 10% /var
现在我需要获取除 tmpfs 之外的可用磁盘空间总数。 现在我需要获取除 tmpfs 之外的总可用磁盘空间计数。
获取总可用磁盘和已用磁盘的命令是什么?
最佳答案
to get the total available disk and used disk?
df -lh --total /dev/sda*
----------
要仅排除类型 tmpfs
:
df -lh --total -x tmpfs
关于linux - 如何使用 df 命令查找可用和已用内存总量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46741895/