You can use the put command in the HDFS. This command is used to copy files from the HDFS file system to the local file system, just the opposite to put command. You can see the syntax given below.
$ hadoop fs -get [-f] [-p]
$ hadoop fs -get /user/data/sample.txt workspace/