Most people used to think that the shell commands hdfs dfs and hadoop fs were interchangeable. They list the directories’ contents in question. But there is a distinction between them.
hadoop fs <args>
The generic file system abbreviation fs is used to refer to any file system, including local file systems, HDFS, WebHDFS, S3 FS, etc.
hdfs dfs <args>
It is particular to HDFS and refers to the Distributed File System. It can be used to carry out HDFS operations.
Happy learning!!