Linux df命令,用于显示磁盘分区上的的磁盘空间使用信息

来源:互联网 发布:谷歌镜像 知乎 编辑:程序博客网 时间:2024/06/04 11:13

常用 df-k,df-m,df -kh,显示可用磁盘空间

[oracle@XDCARCHOLD ~]$ df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol01
                            5.6T  4.6T  658G  88% /
/dev/sda1              99M   14M   81M  15% /boot
tmpfs                  32G   16K   32G   1% /dev/shm
[oracle@XDCARCHOLD ~]$ 


[oracle@XDCARCHOLD ~]$ df --help
Usage: df [OPTION]... [FILE]...
Show information about the file system on which each FILE resides,
or all file systems by default.

Mandatory arguments to long options are mandatory for short options too.
-a, --all include dummy file systems
-B, --block-size=SIZE use SIZE-byte blocks
-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)
-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

SIZE may be (or may be an integer optionally followed by) one of following:
kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.

Report bugs to <bug-coreutils@gnu.org>.

阅读全文
0 0
原创粉丝点击