From e91daae31872531d11cc05a14b2dcfe38ce626bb Mon Sep 17 00:00:00 2001 From: hfutatzhanghb Date: Mon, 11 Dec 2023 16:53:37 +0800 Subject: [PATCH] HDFS-17152. Fix the documentation of count command in FileSystemShell.md. (#5939). Contributed by farmmamba. Reviewed-by: Shilun Fan Signed-off-by: Shuyan Zhang --- .../hadoop-common/src/site/markdown/FileSystemShell.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md index 451b33d74f..bbc9277144 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md @@ -137,13 +137,13 @@ Usage: `hadoop fs -count [-q] [-h] [-v] [-x] [-t []] [-u] [-e] [-s Count the number of directories, files and bytes under the paths that match the specified file pattern. Get the quota and the usage. The output columns with -count are: DIR\_COUNT, FILE\_COUNT, CONTENT\_SIZE, PATHNAME -The -u and -q options control what columns the output contains. -q means show quotas, -u limits the output to show quotas and usage only. +The -u and -q options control what columns the output contains. -q means show quotas and usage, -u limits the output to show quotas only. The output columns with -count -q are: QUOTA, REMAINING\_QUOTA, SPACE\_QUOTA, REMAINING\_SPACE\_QUOTA, DIR\_COUNT, FILE\_COUNT, CONTENT\_SIZE, PATHNAME The output columns with -count -u are: QUOTA, REMAINING\_QUOTA, SPACE\_QUOTA, REMAINING\_SPACE\_QUOTA, PATHNAME -The -t option shows the quota and usage for each storage type. The -t option is ignored if -u or -q option is not given. The list of possible parameters that can be used in -t option(case insensitive except the parameter ""): "", "all", "ram_disk", "ssd", "disk" or "archive". +The -t option shows the quota and usage for each storage type. The -t option is ignored if -u or -q option is not given. The list of possible parameters that can be used in -t option(case insensitive except the parameter): "", "all", "ram_disk", "ssd", "disk" or "archive". The -h option shows sizes in human readable format.