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