Try this as well: (listing directories from root)
hadoop fs -ls -R / | grep "^d"
Try using this command
hdfs dfs -ls hdfs:/