I know du -sh in common Linux filesystems. But how to do that with HDFS?
du -sh
With this you will get size in GB
hdfs dfs -du PATHTODIRECTORY | awk '/^[0-9]+/ { print int($1/(1024**3)) " [GB]\t" $2 }'