Which command is used to view the content of a file in HDFS?
Answer
hadoop fs -cat
Explanation
The command 'hadoop fs -cat <path>' is used to display the content of a file in HDFS to the standard output.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which Spark component is responsible for executing tasks on a worker node?
View question →
What is the role of a 'Channel' in Apache Flume?
View question →
Which of the following is NOT a responsibility of the YARN ResourceManager?
View question →
Which command is used to export data from HDFS to a relational database using Sqoop?
View question →
What is the primary benefit of using Hadoop for big data processing?
View question →
Which type of tables in Hive only store metadata, and dropping the table does NOT delete the underlying data in HDFS?
View question →
QuestionBack to list