Section 5:41. Previewing Text Files in HDFS
The “cat” and “tail” commands in HDFS are used to view the contents of a file stored in the Hadoop Distributed File System. The “cat” command allows you to display the entire contents of a file in the terminal. For example: hadoop fs -cat /user/data/file.txt This command will display the contents of the file “/user/data/file.txt” …