Q. Which command is used to list files in HDFS?
β
Correct Answer: (B)
hdfs fs -ls
Explanation: The correct command is 'hdfs dfs -ls' to list files in HDFS.