主要涉及df、du、ls等命令
df统计文件系统的使用情况。
英文说明:
This manual page documents the GNU version of df. df displays theamount of disk space available on the filesystem containing each filename argument. If no file name is given , the space available on alcurrently mounted filesystems is shown. Disk space is shown in 1K blocksby default, unless the environment variable POSIXLY_CORRECT
is set, in which case 512-byte blocks are used.
If an argument is the absolute file name of a disk device node containinga mounted filesystem, df shows the space available on that filesystemrather than on the filesystem containing the device node(which is alwaysthe root filesystem )。 This version of df cannot show the space availableon unmounted filesystems, because on most kinds of systems doing so requiresvery nonportable intimate knowledge of filesystem strUCtures.
要点如下:
如果不加参数,显示现在加载的文件系统。默认单位1K-blocks.如果设置了POSIXLY_CORRECT ,则以512-byte blocks 为单位。该命令针对文件系统,而不是目录,尽管的给的参数可以是目录。
主要参数:
空显示现在加载的文件系统,不包含0 块空间
-a包含0 块空间
-h 易读方式
-k kB为单位
-l 本地
-T 显示文件系统类型
——sync返回结果前调用sync命令(有什么用呢?)
实例:
[root@Mother_FLASH ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 28826556 1507948 25854292 6% /usr
/dev/md1 19220436 9153312 9090780 51% /var
/dev/ram1 158667 85032 73635 54% /
/dev/shm 1037388 0 1037388 0% /dev/shm
