

{"id":449,"date":"2016-06-13T15:06:31","date_gmt":"2016-06-13T09:36:31","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=449"},"modified":"2021-08-25T22:33:57","modified_gmt":"2021-08-25T17:03:57","slug":"hdfs-hadoop-commands","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/","title":{"rendered":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2468,&quot;href&quot;:&quot;https:\\\/\\\/hadoop.apache.org\\\/docs\\\/r2.4.1\\\/hadoop-project-dist\\\/hadoop-common\\\/FileSystemShell.html#text&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250808135905\\\/https:\\\/\\\/hadoop.apache.org\\\/docs\\\/r2.4.1\\\/hadoop-project-dist\\\/hadoop-common\\\/FileSystemShell.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 06:45:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-15 02:39:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-18 06:54:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-22 20:53:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-29 06:59:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-03 06:02:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-07 06:14:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-13 09:07:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-16 23:17:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-20 12:08:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-25 02:42:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-02 06:48:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-05 06:57:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 15:14:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 07:50:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-19 22:02:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 01:57:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-02 07:16:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-05 07:28:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-08 17:32:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 16:49:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 07:58:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 19:19:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-27 01:37:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-31 15:34:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 12:40:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-14 14:20:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 11:09:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-23 15:50:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-27 13:20:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-04 05:32:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-07 08:20:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-14 16:25:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-18 04:07:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-21 09:09:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-26 05:31:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-01 06:40:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-04 15:48:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 18:30:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-14 03:58:12&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-14 03:58:12&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p><strong>Practice the most frequently used Hadoop HDFS commands to perform\u00a0operations on HDFS files\/directories with usage and examples.<\/strong><\/p>\n<p>In this Hadoop HDFS commands tutorial, we are going to learn the remaining important and frequently used HDFS commands with the help of which we will be able to perform HDFS file operations like copying a file, changing files permissions, viewing the file contents, changing files ownership, creating directories, etc.<\/p>\n<h2>Hadoop HDFS Commands Tutorial<\/h2>\n<p>Hadoop HDFS commands are used to perform various Hadoop HDFS operations and in order to manage the files present on HDFS clusters. In this Hadoop fs commands tutorial, we will discuss the Hadoop basic commands, Hadoop shell commands and frequently use Hadoop commands with examples and description.<\/p>\n<p>If you encounter any query in this Hadoop\u00a0HDFS tutorial, <strong>Please Comment.<\/strong><\/p>\n<p>Before interacting with HDFS you need to Deploy Hadoop follow this detailed tutorial to <strong><a href=\"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/\">Install<\/a><\/strong> and configure Hadoop.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75610\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg\" alt=\"12 frequently used hdfs hadoop commands\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<h3>1. touchz<\/h3>\n<p><b>Hadoop touchz Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013touchz \/directory\/filename<\/pre>\n<p><b>Hadoop touchz Command Example:<\/b><\/p>\n<p>Here in this example, we are trying to create a new file \u2018file1\u2019 in the newDataFlair directory of HDFS with file size 0 byte.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75557\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7.png\" alt=\"touchz command - HDFS commands\" width=\"1299\" height=\"129\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7-300x30.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7-768x76.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7-1024x102.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/touchzcommand-HDFScommands7-520x52.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>To check for the file, use the <strong>ls<\/strong> command to enlist the files and directories.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75558\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8.png\" alt=\"ls command to check file - HDFS commands\" width=\"1299\" height=\"203\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8-300x47.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8-768x120.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8-1024x160.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/lscommandtocheckfile-HDFScommands8-520x81.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop touchz Command Description:<\/b><\/p>\n<p><strong>touchz<\/strong> command creates a file in HDFS with file size equals to 0 byte. The directory is the name of the directory where we will create the file, and filename is the name of the new file we are going to create.<\/p>\n<p><strong>Read: <a href=\"https:\/\/data-flair.training\/blogs\/hadoop-hdfs-data-read-and-write-operations\/\">Read write Operations in HDFS<\/a><\/strong><\/p>\n<h3>2. test<\/h3>\n<p><b>Hadoop test Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -test  -[defsz] &lt;path&gt;<\/pre>\n<p><b>Hadoop test Command Example:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">[php] \"hdfs dfs -test -e sample\r\nhdfs dfs -test -z sample\r\nhdfs dfs -test -d sample\" [\/php]<\/pre>\n<p><b>Hadoop test Command Description:<\/b><\/p>\n<p>The <strong>test<\/strong> command is used for file test operations.<\/p>\n<p>It gives 1 if a path exists.<\/p>\n<p>It gives 0 if it has zero length, or path provided by the user is a directory, or otherwise.<\/p>\n<table class=\"df-table-center\">\n<tbody>\n<tr>\n<td><b>Options<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>-d<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Check whether the path given by the user is a directory or not, return 0 if it is a directory.<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-e<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Check whether the path given by the user exists or not, return 0 if the path exists.<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-f<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Check whether the path given by the user is a file or not, return 0 if it is a file.<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-s<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Check if the path is not empty, return 0 if a path is not empty.<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-r<\/b><\/td>\n<td><span style=\"font-weight: 400;\">return 0 if the path exists and read permission is granted<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-w<\/b><\/td>\n<td><span style=\"font-weight: 400;\">return 0 if the path exists and write permission is granted<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>-z<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Checks whether the file size is 0 byte or not, return 0 if the file is of 0 bytes.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3. text<\/h3>\n<p><b>Hadoop text Command Usage:<\/b><br \/>\n<b><\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -text &lt;src&gt;<\/pre>\n<p><b>Hadoop text Command Example:<\/b><\/p>\n<p>Here in this example, we are using the <a href=\"https:\/\/hadoop.apache.org\/docs\/r2.4.1\/hadoop-project-dist\/hadoop-common\/FileSystemShell.html#text\">text<\/a> command to display the \u2018sample\u2019 zip file in text format.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-76050\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50.png\" alt=\"Text command HDFS commands\" width=\"1299\" height=\"246\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50-150x28.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50-300x57.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50-768x145.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50-1024x194.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Textcommand-HDFScommands50-520x98.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop text Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>text<\/strong> takes the source file and outputs the file in the text format. It detects the encoding of the file and decodes it to plain text.<\/p>\n<p>The allowed formats are zip and TextRecordInputStream.<\/p>\n<h3>4. stat<\/h3>\n<p><b>Hadoop stat Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -stat [format] &lt;path&gt;<\/pre>\n<p><b>Hadoop stat Command Example:<\/b><\/p>\n<p>In the below example, we are using the <strong>stat<\/strong> command to print the information about file \u2018test\u2019 present in the dataflair directory of HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75571\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34.png\" alt=\"stat command - HDFS commands\" width=\"1299\" height=\"464\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34-150x54.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34-300x107.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34-768x274.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34-1024x366.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/statcommand-HDFScommands34-520x186.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop stat Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>stat<\/strong> prints the statistics about the file or directory in the specified format.<\/p>\n<p><strong>Formats:<\/strong><\/p>\n<p><strong>%b &#8211;<\/strong>\u00a0 \u00a0 file size in bytes<br \/>\n<strong>%g &#8211;<\/strong>\u00a0 \u00a0 group name of owner<br \/>\n<strong>%n &#8211;<\/strong>\u00a0 \u00a0 file name<br \/>\n<strong>%o &#8211;\u00a0<\/strong> \u00a0 block size<br \/>\n<strong>%r\u00a0 &#8211;\u00a0<\/strong>\u00a0 \u00a0replication<br \/>\n<strong>%u &#8211;<\/strong>\u00a0 \u00a0 user name of owner<br \/>\n<strong>%y &#8211;<\/strong>\u00a0 \u00a0 modification date<\/p>\n<p>If the format is not specified then %y is used by default.<\/p>\n<p>Execute\u00a0<strong><a href=\"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/\">top 10 HDFS Commands<\/a>\u00a0<\/strong>from our Part &#8211; 1 of this HDFS tutorial.<\/p>\n<h3>5. usage<\/h3>\n<p><b>Hadoop &#8216;usage&#8217; Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -usage &lt;command&gt;<\/pre>\n<p><b>Hadoop usage Command Example:<\/b><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75594\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44.png\" alt=\"usage command - HDFS commands\" width=\"1299\" height=\"165\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44-150x19.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44-300x38.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44-768x98.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44-1024x130.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/usagecommand-HDFScommands44-520x66.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop usage Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>usage<\/strong> returns the help for an individual command.<\/p>\n<h3>6. help<\/h3>\n<p><b>Hadoop help Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -help [command]<\/pre>\n<p><b>Hadoop help Command Example:<\/b><br \/>\n<b><\/b><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75601\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51.png\" alt=\"help command - HDFS commands\" width=\"1299\" height=\"213\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51-150x25.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51-300x49.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51-768x126.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51-1024x168.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/helpcommand-HDFScommands51-520x85.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop help Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>help<\/strong> shows help for all the commands or the specified command.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/most-used-hdfs-commands-tutorial-examples\/\"><strong>Read: HDFS Commands Part &#8211; 2<\/strong> <\/a><\/p>\n<h3>7. chmod<\/h3>\n<p><b>Hadoop chmod Command Usage:<\/b><br \/>\n<b><\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -chmod [-R] &lt;mode&gt; &lt;path&gt;<\/pre>\n<p><b>Hadoop chmod Command Example:<\/b><\/p>\n<p>Here we are changing the file permission of file \u2018testfile\u2019 present on the HDFS file system.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75588\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40.png\" alt=\"chmod command - HDFS commands\" width=\"1299\" height=\"284\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40-150x33.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40-300x66.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40-768x168.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40-1024x224.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/chmodcommand-HDFScommands40-520x114.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75589\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41.png\" alt=\"checking mode of file - HDFS commands\" width=\"1299\" height=\"443\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41-150x51.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41-300x102.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41-768x262.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41-1024x349.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingmodeoffile-HDFScommands41-520x177.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop chmod Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>chmod<\/strong> changes the permissions of a file.<\/p>\n<p>The <strong>-R<\/strong> option recursively changes files permissions through the directory structure.<\/p>\n<p>The user must be the owner of the file or superuser.<\/p>\n<h3>8. appendToFile<\/h3>\n<p><b>Hadoop appendToFile Command Usage:<\/b><br \/>\n<b><\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -appendToFile &lt;localsrc&gt; &lt;dest&gt;<\/pre>\n<p><b>Hadoop appendToFile Command Example:<\/b><\/p>\n<p>In the below example, we are trying to append the localfile1, localfile2 present in the local filesystem into the file named as \u2018apendfile\u2019 in the DataFlair directory on the HDFS filesystem.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75590\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30.png\" alt=\"appendToFile command - HDFS commands\" width=\"1299\" height=\"126\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30-300x29.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30-768x74.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30-1024x99.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/appendToFilecommand-HDFScommands30-520x50.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75591\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31.png\" alt=\"checking appendtofile - HDFS commands\" width=\"1299\" height=\"209\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31-768x124.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31-1024x165.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checkingappendfile-HDFScommands31-520x84.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop appendToFile Command Description:<\/b><\/p>\n<p>The HDFS fs shell command <strong>appendToFile<\/strong> appends the content of single or multiple local files specified in the localsrc to the provided destination file on the HDFS.<\/p>\n<p>The destination file gets created if it does not exist earlier.<\/p>\n<h3>9. checksum<\/h3>\n<p><b>Hadoop checksum Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -checksum &lt;src&gt;<\/pre>\n<p><b>Hadoop checksum Command Example:<\/b><\/p>\n<p>Here we are checking the checksum of file \u2018apendfile\u2019 present in DataFlair directory on the HDFS filesystem.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75592\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45.png\" alt=\"checksum command - HDFS commands\" width=\"1299\" height=\"180\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45-150x21.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45-300x42.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45-768x106.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45-1024x142.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/checksumcommand-HDFScommands45-520x72.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop checksum Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>checksum<\/strong> returns the checksum information of a file.<\/p>\n<h3>10. count<\/h3>\n<p><b>Hadoop count Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -count [options] &lt;path&gt;<\/pre>\n<p><b>Hadoop count Command Example:<\/b><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75593\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36.png\" alt=\"count command - HDFS commands\" width=\"1299\" height=\"464\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36-150x54.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36-300x107.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36-768x274.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36-1024x366.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/countcommand-HDFScommands36-520x186.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop count Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>count<\/strong> counts the number of files, directories, and bytes under the paths that matches the specified file pattern.<\/p>\n<p><strong>Options:<\/strong><br \/>\n<strong>-q<\/strong>\u00a0 &#8211;\u00a0 shows quotas(quota is the hard limit on the number of names and\u00a0amount of space used for individual directories)<br \/>\n<strong>-u\u00a0 &#8211;\u00a0<\/strong> it limits output to show quotas and usage only<br \/>\n<strong>-h\u00a0<\/strong> &#8211;\u00a0 shows sizes in a human-readable format<br \/>\n<strong>-v\u00a0<\/strong>\u00a0&#8211;\u00a0 shows header line<\/p>\n<h3>11. find<\/h3>\n<p><strong>Hadoop HDFS find command usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -find &lt;path&gt; \u2026 &lt;expression&gt;<\/pre>\n<p><b>Hadoop find Command Example:<\/b><\/p>\n<p>Here in this example, we are trying to find \u2018copytest\u2019 file in HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75597\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1.png\" alt=\"find command - HDFS commands\" width=\"1299\" height=\"157\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1-150x18.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1-300x36.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1-768x93.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1-1024x124.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/findcommand-HDFScommands49-1-520x63.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Hadoop HDFS find command description:<\/strong><\/p>\n<p>The Hadoop fs shell command <strong>find<\/strong> finds all files that match the specified expression. If no path is specified, then it defaults to the present working directory. If an expression is not specified, then it defaults to -print.<\/p>\n<h3>12.\u00a0getmerge<\/h3>\n<p><strong>Hadoop HDFS getmerge command usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -getmerge &lt;src&gt; &lt;localdest&gt;<\/pre>\n<p><b>Hadoop getmerge Command Example:<\/b><\/p>\n<p>Here in this example, we are merging the copytest, file1, and sample file present in HDFS into a single file \u2018MergeFile\u2019 on the local filesystem.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75598\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26.png\" alt=\"getmerge command - HDFS commands\" width=\"1299\" height=\"255\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26-150x29.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26-300x59.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26-768x151.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26-1024x201.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/getmergecommand-HDFScommands26-520x102.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75599\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27.png\" alt=\"displaying content of mergefile\" width=\"1299\" height=\"521\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27-150x60.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27-300x120.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27-768x308.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27-1024x411.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/displayingcontentofmergefile-HDFScommands27-520x209.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Hadoop HDFS getmerge command description:<\/strong><\/p>\n<p><strong>getmerge<\/strong> command merges a list of files in a directory on the HDFS filesystem into a single local file on the local filesystem.<\/p>\n<h2><strong>Summary<\/strong><\/h2>\n<p>I hope after reading this article, you are now able to use HDFS commands to perform operations on the Hadoop filesystem. The article has explained all the essential HDFS commands, including test, chown, chmod, count, etc.<\/p>\n<p>Now its time to learn a few more concepts to master HDFS thoroughly.<\/p>\n<p>To learn more about the world&#8217;s most reliable storage layer<strong> <a href=\"http:\/\/data-flair.training\/blogs\/introduction-tutorial-hdfs\/\" target=\"_blank\" rel=\"noopener noreferrer\">follow this HDFS introductory guide<\/a><\/strong>.<\/p>\n<p>For any queries or feedback regarding Hadoop Commands just leave a comment in the below section. I hope you like the Hadoop Commands tutorial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Practice the most frequently used Hadoop HDFS commands to perform\u00a0operations on HDFS files\/directories with usage and examples. In this Hadoop HDFS commands tutorial, we are going to learn the remaining important and frequently used&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":75610,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[5211,5231,5258,5330,21838,5555,5577],"class_list":["post-449","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hdfs","tag-hadoop-basic-commands","tag-hadoop-commands","tag-hadoop-hdfs-commands","tag-hadoop-shell-commands","tag-hadoop-touchz","tag-hdfs-commands","tag-hdfs-introduction"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>12 frequently used Hadoop HDFS Commands with Examples &amp; usage - DataFlair<\/title>\n<meta name=\"description\" content=\"Explore Hadoop Commands like touchz, count, usage, checksum, stat with examples &amp; usage to perform file operations on the world\u2019s most reliable storage.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"12 frequently used Hadoop HDFS Commands with Examples &amp; usage - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Explore Hadoop Commands like touchz, count, usage, checksum, stat with examples &amp; usage to perform file operations on the world\u2019s most reliable storage.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-13T09:36:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T17:03:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage - DataFlair","description":"Explore Hadoop Commands like touchz, count, usage, checksum, stat with examples & usage to perform file operations on the world\u2019s most reliable storage.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/","og_locale":"en_US","og_type":"article","og_title":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage - DataFlair","og_description":"Explore Hadoop Commands like touchz, count, usage, checksum, stat with examples & usage to perform file operations on the world\u2019s most reliable storage.","og_url":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-06-13T09:36:31+00:00","article_modified_time":"2021-08-25T17:03:57+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage","datePublished":"2016-06-13T09:36:31+00:00","dateModified":"2021-08-25T17:03:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/"},"wordCount":1149,"commentCount":7,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg","keywords":["hadoop basic commands","hadoop commands","hadoop hdfs commands","hadoop shell commands","hadoop touchz","HDFS Commands","HDFS Introduction"],"articleSection":["HDFS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/","url":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/","name":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg","datePublished":"2016-06-13T09:36:31+00:00","dateModified":"2021-08-25T17:03:57+00:00","description":"Explore Hadoop Commands like touchz, count, usage, checksum, stat with examples & usage to perform file operations on the world\u2019s most reliable storage.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/12-frequently-used-hdfs-commands.jpg","width":802,"height":420,"caption":"12 frequently used hdfs hadoop commands"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/hdfs-hadoop-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"HDFS Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hdfs\/"},{"@type":"ListItem","position":3,"name":"12 frequently used Hadoop HDFS Commands with Examples &amp; usage"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=449"}],"version-history":[{"count":16,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/449\/revisions"}],"predecessor-version":[{"id":86544,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/449\/revisions\/86544"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/75610"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}