Q. Which command displays the contents of a file in HDFS?
β
Correct Answer: (B)
hdfs dfs -cat
Explanation: The command 'hdfs dfs -cat' is used to display the contents of a file in HDFS.