Remove and Recursive Remove Command in Hadoop

Posted at  00:34  |  in  HDFS

-rm Command: 

This command deletes/removes the file from the directory. The following is the syntax of rm command.
  • -rm <src>
The -skipTrash option bypasses trash, if enabled, and immediately deletes <src>. The following figure shows you the example. 
 
Hadoop -rm Command
Hadoop -rm Command

-rmr Command:

This command deletes/removes entire directory from the File System. The following is the syntax of rmr command.
  • -rmr <src>
The -skipTrash option bypasses trash, if enabled, and immediately deletes <src>. The following figure shows you the example. 

Hadoop -rmr Command
Hadoop -rmr Command



            

Share this post

About-Privacy Policy-Contact us
Copyright © 2013 Hadoop Tutor. Blogger Template by Bloggertheme9
Proudly Powered by Blogger.
back to top