%b Size of file in bytes
%F Will return "file", "directory", or "symlink" depending on the type of inode
%g Group name
%n Filename
%o HDFS Block size in bytes ( 128MB by default )
%r Replication factor
%u Username of owner
%y Formatted mtime of inode
%Y UNIX Epoch mtime of inode
Example:
[root@hdm1 ~]# hdfs dfs -stat "%n" /tmp/messages
messages
[root@hdm1 ~]# hdfs dfs -stat "%b %F %g %n %o %r %u %y %Y" /tmp/messages
143 regular file hadoop messages 134217728 3 root 2014-02-07 21:17:22 1391807842674
ref:
1. https://community.pivotal.io/s/article/Understanding-format-options-for-hdfs--stat-command