标签:ada define splay getting sage and sync 百分比 not
可以接受路径参数,主要是通过该路径所在的文件系统,来了解对应文件系统的磁盘使用情况.
Usage: df [OPTION]... [FILE]...
df [选项]...[文件]
-a, --all include dummy file systems // 包含所有的文件系统
-B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,
‘-BM‘ prints sizes in units of 1,048,576 bytes;
see SIZE format below
--direct show statistics for a file instead of mount point
--total produce a grand total
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si likewise, but use powers of 1000 not 1024
-i, --inodes list inode information instead of block usage
-k like --block-size=1K
-l, --local limit listing to local file systems
--no-sync do not invoke sync before getting usage info (default)
--output[=FIELD_LIST] use the output format defined by FIELD_LIST,
or print all fields if FIELD_LIST is omitted.
-P, --portability use the POSIX output format
--sync invoke sync before getting usage info
-t, --type=TYPE limit listing to file systems of type TYPE
-T, --print-type print file system type
-x, --exclude-type=TYPE limit listing to file systems not of type TYPE
-v (ignored)
--help display this help and exit
--version output version information and exit
-h:控制大小的显示为易读的方式
-k控制输出的磁盘大小单位为:K
1.1 df展示
[root@localhost ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/vda1 41151808 1797652 37240724 5% / devtmpfs 239068 0 239068 0% /dev tmpfs 249664 0 249664 0% /dev/shm tmpfs 249664 436 249228 1% /run tmpfs 249664 0 249664 0% /sys/fs/cgroup tmpfs 49936 0 49936 0% /run/user/0
Filesystem //文件系统的名称
1K-blocks // blocks个数
used // 使用的容量
Available //可用的容量
use% //用了多少的百分比
Mounted on //挂载点
1.2 -a 选项 显示所有的文件系统
1.3
-a, --all include dummy file systems -B, --block-size=SIZE scale sizes by SIZE before printing them; e.g., ‘-BM‘ prints sizes in units of 1,048,576 bytes; see SIZE format below --direct show statistics for a file instead of mount point --total produce a grand total -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) -H, --si likewise, but use powers of 1000 not 1024 -i, --inodes list inode information instead of block usage -k like --block-size=1K -l, --local limit listing to local file systems --no-sync do not invoke sync before getting usage info (default) --output[=FIELD_LIST] use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is omitted. -P, --portability use the POSIX output format --sync invoke sync before getting usage info -t, --type=TYPE limit listing to file systems of type TYPE -T, --print-type print file system type -x, --exclude-type=TYPE limit listing to file systems not of type TYPE -v (ignored) --help display this help and exit --version output version information and exit
标签:ada define splay getting sage and sync 百分比 not
原文地址:https://www.cnblogs.com/gaiting/p/12167689.html