Hadoop provides a command-line shell for its filesystem, which could be HDFS or any other filesystem supported by Hadoop. There are different ways through which the commands can be called:
hrishikesh@base0:/$ hadoop fs -<command> <parameter> hrishikesh@base0:/$ hadoop dfs -<command> <parameter> hrishikesh@base0:/$ hdfs dfs -<command> <parameter>
Although all commands can be used on HDFS, the first command listed is for Hadoop FS, which can be either HDFS or any other filesystem used by Hadoop. The second and third commands are specific to HDFS; however, the second command is deprecated, and it is replaced by the third command. Most filesystem commands are inspired by Linux shell commands, except for minor differences in syntax. The HDFS CLI follows a POSIX-like filesystem interface.