From ee26fb33a62c78964ec21e31d510df40ed543d60 Mon Sep 17 00:00:00 2001 From: "lion.chan" Date: Fri, 28 Aug 2020 21:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=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: lion.chan --- Software/Applications/Du_Df/Du_和_Df_命令.md | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Software/Applications/Du_Df/Du_和_Df_命令.md diff --git a/Software/Applications/Du_Df/Du_和_Df_命令.md b/Software/Applications/Du_Df/Du_和_Df_命令.md new file mode 100644 index 0000000..29345f0 --- /dev/null +++ b/Software/Applications/Du_Df/Du_和_Df_命令.md @@ -0,0 +1,29 @@ +# Du 和 Df 命令 + +## Du + +参数解释 + +-a : 列出所有的文件与目录容量,因为默认仅统计目录的容量而已 + +-h: 以人们较易读的容量格式呈现(G/M/K)显示,自动选择显示的单位大小 + +-s : 列出总量而已,而不列出每个个别的目录占用容量 + +-k : 以KB为单位进行显示 + +-m : 以MB为单位进行显示常用命令参考 + +常见用法 + +```bash +du -sh +``` + +## Df + +常见用法 + +```bash +df -h +```