I know du -sh in common Linux filesystems. But how to do that with HDFS?
du -sh
Prior to 0.20.203, and officially deprecated in 2.6.0:
hadoop fs -dus [directory]
Since 0.20.203 (dead link) 1.0.4 and still compatible through 2.6.0:
hdfs dfs -du [-s] [-h] URI [URI …]
You can also run hadoop fs -help for more info and specifics.
hadoop fs -help