You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Xiaobing Zhou (JIRA)" <ji...@apache.org> on 2017/05/10 21:23:04 UTC

[jira] [Created] (HDFS-11803) Add -v option for du command to show header line

Xiaobing Zhou created HDFS-11803:
------------------------------------

             Summary: Add -v option for du command to show header line
                 Key: HDFS-11803
                 URL: https://issues.apache.org/jira/browse/HDFS-11803
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Xiaobing Zhou
            Assignee: Xiaobing Zhou


Like hdfs -count command, it's better to add -v for du command to show header line.

Without -v,
$ hdfs -du -h -s /tmp/parent
{noformat}
1 G  1 G  /tmp/parent
{noformat}

With -v,
$ hdfs -du -h -s -v /tmp/parent
SIZE DISK_SPACE_CONSUMED_WITH_ALL_REPLICAS FULL_PATH_NAME
1 G  1 G  /tmp/parent


$ hdfs dfs -count -q -v  -h -x  /tmp/parent
{noformat}
QUOTA       REM_QUOTA     SPACE_QUOTA REM_SPACE_QUOTA    DIR_COUNT   FILE_COUNT       CONTENT_SIZE PATHNAME
          10               7            50 G            49 G            2            1                1 G /tmp/parent
{noformat}





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org