说说在 Linux 中,如何查看磁盘空间使用情况

说说在 Linux 中,如何查看磁盘空间使用情况

可以使用 df 命令来查看磁盘空间使用情况。df 是 display file 的缩写。

英文说明如下:

This manual page documents the GNU version of df. df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.

我们一般会带上 -h 参数,-h 是 --human-readable 的简写。它会以我们可读的容量单位来展示占用的磁盘空间大小。比如 1K 234M 2G 等等。

说说在 Linux 中,如何查看磁盘空间使用情况

列名 说明
Filesytem 文件系统名
Size 总大小
Used 已用大小
Avail 可用大小
Used% 已用百分比
Mounted on 挂载点

是不是很简单呀 O(∩_∩)O哈哈~