hadoop fs -count -q -h -v /path/to/directory
I would add the -h and -v options for easy reading of the output. With the -q option, also provide the name quota value set for each directory, the remaining available name quota, the set space quota value, and the remaining free quota. If there is no quota set in the directory, the reported values ββare none and inf. The -h option shows the size in human readable format. The -v option displays the title bar.
source share