From 80468d577990bfbed329737e6e4c3927165f3b49 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 25 Dec 2020 13:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20Du=20=E5=92=8C=20Df=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/Du_Df/Du_和_Df_命令.md | 30 +++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Software/Applications/Du_Df/Du_和_Df_命令.md b/Software/Applications/Du_Df/Du_和_Df_命令.md index 09b1645..f98500c 100644 --- a/Software/Applications/Du_Df/Du_和_Df_命令.md +++ b/Software/Applications/Du_Df/Du_和_Df_命令.md @@ -4,15 +4,14 @@ 参数解释 --a:列出所有的文件与目录容量,因为默认仅统计目录的容量而已 - --h: 以人们较易读的容量格式呈现(G/M/K)显示,自动选择显示的单位大小 - --s: 列出总量而已,而不列出每个个别的目录占用容量 - --k:以KB为单位进行显示 - --m: 以MB为单位进行显示常用命令参考 +| Options | Description | +|----------------------|---------------------------------------------------------| +| -a, --all | write counts for all files, not just directories | +| -h, --human-readable | print sizes in human readable format (e.g., 1K 234M 2G) | +| -k | like --block-size=1K | +| -m | like --block-size=1M | +| -S, --separate-dirs | for directories do not include size of subdirectories | +| -s, --summarize | display only a total for each argument | 常见用法 @@ -22,8 +21,19 @@ du -sh ## Df +参数解释 + +| Options | Description | +|-------------------------|------------------------------------------------------| +| -a, --all | include pseudo, duplicate, inaccessible file systems | +| -h, --human-readable | print sizes in powers of 1024 (e.g., 1023M) | +| -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 | + 常见用法 ```bash -df -h +df -hT +df -h -t=ext4 ```