Q. Which command is used to delete a file from HDFS?
β
Correct Answer: (B)
hdfs dfs -rm
Explanation: The command 'hdfs dfs -rm' is used to delete files from HDFS.