Section 5: 35. Listing Files in HDFS
To list the files and directories in HDFS, you can use the “ls” command with the “hadoop fs” or “hdfs dfs” command line interface. hadoop fs -ls -C Display the paths of files and directories only. hadoop fs -ls -d Directories are listed as plain files. hadoop fs -ls -h Formats the …