

{"id":443,"date":"2016-06-13T14:38:11","date_gmt":"2016-06-13T09:08:11","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=443"},"modified":"2021-08-25T22:34:04","modified_gmt":"2021-08-25T17:04:04","slug":"top-hadoop-hdfs-commands-tutorial","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/","title":{"rendered":"Top 10 Hadoop HDFS Commands with Examples and Usage"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2470,&quot;href&quot;:&quot;https:\\\/\\\/hadoop.apache.org\\\/docs\\\/current\\\/hadoop-project-dist\\\/hadoop-common\\\/FileSystemShell.html#get&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251001030724\\\/https:\\\/\\\/hadoop.apache.org\\\/docs\\\/current\\\/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:56:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-14 08:10:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-17 12:26:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-21 21:35:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-26 09:37:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-29 14:04:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-01 15:33:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-04 18:51:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-08 06:04:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-11 13:15:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-15 08:23:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-19 06:24:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-22 11:54:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-25 21:26:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-29 02:44:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-02 05:10:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-05 07:25:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 07:41:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-13 08:05:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 08:52:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-19 12:29:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 05:35:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-02 08:13:11&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-05 17:46:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 12:48:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-13 07:43:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-16 15:58:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-19 16:58:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 05:06:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-26 09:45:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-29 17:32:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-04 06:58:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-07 10:02:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-10 17:45:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-14 08:57:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-18 01:54:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-21 06:04:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 05:37:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-28 06:11:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-01 13:20:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-05 05:25:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-08 18:31:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-12 03:53:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-15 06:58:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-21 05:50:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-25 04:55:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-01 06:40:04&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-01 06:40:04&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p><strong>Explore the most essential and frequently used Hadoop HDFS commands to perform file operations on the world\u2019s most reliable storage.<\/strong><\/p>\n<p><strong>Hadoop<\/strong> HDFS is a distributed file system that provides redundant storage space for files having huge sizes. It is used for storing files that are in the range of terabytes to petabytes.<\/p>\n<h2>Hadoop HDFS Commands<\/h2>\n<p>With the help of the HDFS command, we can perform Hadoop HDFS file operations like changing the file permissions, viewing the file contents, creating files or directories, copying file\/directory from the local file system to HDFS or vice-versa, etc.<\/p>\n<p>Before starting with the HDFS command, we have to start the Hadoop services. To start the Hadoop services do the following:<\/p>\n<p>1. Move to the <strong>~\/hadoop-3.1.2<\/strong> directory<\/p>\n<p>2. Start Hadoop service by using the command<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sbin\/start-dfs.sh<\/pre>\n<p>In this Hadoop Commands tutorial, we have mentioned the <strong>top 10<\/strong> Hadoop HDFS commands with their usage, examples, and description.<\/p>\n<p>Let us now start with the HDFS commands.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75484\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg\" alt=\"hadoop hdfs commands\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<h3>1. version<\/h3>\n<p><b>Hadoop HDFS version Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">version<\/pre>\n<p><b>Hadoop HDFS version Command Example:<\/b><\/p>\n<p>Before working\u00a0with HDFS you need\u00a0to Deploy\u00a0Hadoop, follow this guide\u00a0to <strong><a href=\"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/\">Install and configure Hadoop 3<\/a><\/strong>.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop version<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75463\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2.png\" alt=\"version command- HDFS commands\" width=\"1299\" height=\"290\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2-150x33.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2-300x67.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2-768x171.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2-1024x229.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/versioncommand-HDFScommands2-520x116.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS version Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>version<\/strong> prints the Hadoop version.<\/p>\n<h3>2. mkdir<\/h3>\n<p><b>Hadoop HDFS mkdir Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013mkdir \/path\/directory_name<\/pre>\n<p><b>Hadoop HDFS mkdir Command Example 1:<\/b><\/p>\n<p>In this example, we are trying to create a newDataFlair named directory in HDFS using the <strong>mkdir<\/strong> command.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75464\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4.png\" alt=\"mkdir command - HDFS commands\" width=\"1299\" height=\"127\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4-300x29.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4-768x75.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4-1024x100.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdircommand-HDFScommands4-520x51.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/strong><\/p>\n<p>Using the <strong>ls<\/strong> command, we can check for the directories in HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75465\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5.png\" alt=\"ls commad to check directory - HDFS commands\" width=\"1299\" height=\"261\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5-150x30.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5-300x60.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5-768x154.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5-1024x206.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommadtocheckdirectory-HDFScommands5-520x104.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Example 2:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75467\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6.png\" alt=\"mkdir with option p - HDFS commands\" width=\"1299\" height=\"315\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6-150x36.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6-300x73.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6-768x186.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6-1024x248.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mkdirwithoptionp-HDFScommands6-520x126.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS mkdir Command Description:<\/b><\/p>\n<p>This command creates the directory in HDFS if it does not already exist.<\/p>\n<p><strong>Note:<\/strong> If the directory already exists in HDFS, then we will get an error message that file already exists.<\/p>\n<p>Use <strong>hadoop fs mkdir -p \/path\/directoryname<\/strong>, so not to fail even if directory exists.<\/p>\n<p>Learn various features of Hadoop HDFS from this<strong><a href=\"http:\/\/data-flair.training\/blogs\/features-hadoop-hdfs-overview-beginners\/\"> HDFS features guide<\/a><\/strong>.<\/p>\n<h3>3. ls<\/h3>\n<p><b>Hadoop HDFS ls Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -ls \/path<\/pre>\n<p><b>Hadoop HDFS ls Command Example 1:<\/b><\/p>\n<p>Here in the below example, we are using the <strong>ls<\/strong> command to enlist the files and directories present in HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75468\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3.png\" alt=\"ls command - HDFS commands\" width=\"1299\" height=\"210\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3-768x124.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3-1024x166.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lscommand-HDFScommands3-520x84.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS ls Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>ls<\/strong> displays a list of the contents of a directory specified in the path provided by the user. It shows the name, permissions, owner, size, and modification date for each file or directories in the specified directory.<\/p>\n<p><b>Hadoop HDFS ls Command Example 2:<\/b><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75469\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48.png\" alt=\"ls with R command - HDFS commands\" width=\"1299\" height=\"327\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48-150x38.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48-300x76.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48-768x193.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48-1024x258.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/lswith-Rcommand-HDFScommands48-520x131.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/strong><\/p>\n<p><b>Hadoop HDFS ls Description:<\/b><\/p>\n<p>This Hadoop fs command behaves like <strong>-ls,<\/strong> but recursively displays entries in all subdirectories of a path.<\/p>\n<h3>4. put<\/h3>\n<p><b>Hadoop HDFS put Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">haoop fs -put &lt;localsrc&gt; &lt;dest&gt;<\/pre>\n<p><b>Hadoop HDFS put Command Example:<\/b><\/p>\n<p>Here in this example, we are trying to copy localfile1 of the local file system to the Hadoop filesystem.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75470\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15.png\" alt=\"put command - HDFS commands\" width=\"1299\" height=\"126\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15-300x29.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15-768x74.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15-1024x99.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/putcommand-HDFScommands15-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\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75471\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16.png\" alt=\"checking-for-file-copyfromlocal - HDFS commands\" width=\"1299\" height=\"284\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16-150x33.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16-300x66.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16-768x168.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16-1024x224.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromlocal-HDFScommands16-520x114.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS put Command Description:<\/b><\/p>\n<p>The Hadoop fs shell command <strong>put<\/strong> is similar to the <strong>copyFromLocal<\/strong>, which copies files or directory from the local filesystem to the destination in the Hadoop filesystem.<\/p>\n<h3>5. copyFromLocal<\/h3>\n<p><b>Hadoop HDFS copyFromLocal Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -copyFromLocal &lt;localsrc&gt; &lt;hdfs destination&gt;<\/pre>\n<p><b>Hadoop HDFS copyFromLocal Command Example:<\/b><\/p>\n<p>Here in the below example, we are trying to copy the \u2018test1\u2019 file present in the local file system to the newDataFlair directory of Hadoop.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75472\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11.png\" alt=\"copyFromLocal command- HDFS commands\" width=\"1299\" height=\"130\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11-300x30.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11-768x77.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11-1024x102.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyFromLocalcommand-HDFScommands11-520x52.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\/2016\/06\/showingcontentofcopiedfile-HDFScommands12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75473\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12.png\" alt=\"showingcontentofcopiedfile - HDFS commands\" width=\"1299\" height=\"234\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12-150x27.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12-300x54.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12-768x138.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12-1024x184.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/showingcontentofcopiedfile-HDFScommands12-520x94.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS copyFromLocal Command Description:<\/b><\/p>\n<p>This command copies the file from the local file system to HDFS.<\/p>\n<p>Learn\u00a0<strong><a href=\"http:\/\/data-flair.training\/blogs\/data-read-operation-in-hdfs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Internals of HDFS Data Read Operation, How Data flows in HDFS while reading the file<\/a>.<\/strong><\/p>\n<p><strong>Any Doubt yet in Hadoop HDFS Commands?<\/strong> Please Comment.<\/p>\n<h3>6. get<\/h3>\n<p><b>Hadoop HDFS get Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -get &lt;src&gt; &lt;localdest&gt;<\/pre>\n<p><b>Hadoop HDFS get Command Example:<\/b><\/p>\n<p>In this example, we are trying to copy the \u2018testfile\u2019 of the hadoop filesystem to the local file system.<\/p>\n<p><b>Hadoop HDFS get Command Description:<\/b><br \/>\nThe Hadoop fs shell command <a href=\"https:\/\/hadoop.apache.org\/docs\/current\/hadoop-project-dist\/hadoop-common\/FileSystemShell.html#get\">get<\/a> copies the file or directory from the Hadoop file system to the local file system.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75475\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17.png\" alt=\"get command - HDFS commands\" width=\"1299\" height=\"131\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17-150x15.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17-300x30.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17-768x77.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17-1024x103.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/getcommand-HDFScommands17-520x52.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\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75476\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18.png\" alt=\"checking for file copied from hadoop - HDFS commands\" width=\"1299\" height=\"207\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18-768x122.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18-1024x163.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforfilecopiedfromhadoop-HDFScommands18-520x83.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>Learn: <strong><a href=\"https:\/\/data-flair.training\/blogs\/rack-awareness-hadoop-hdfs\/\">Rack Awareness<\/a>, <a href=\"https:\/\/data-flair.training\/blogs\/most-used-hdfs-commands-tutorial-examples\/\">High Availability<\/a><\/strong><\/p>\n<h3>7. copyToLocal<\/h3>\n<p><b>Hadoop HDFS copyToLocal Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -copyToLocal &lt;hdfs source&gt; &lt;localdst&gt;<\/pre>\n<p><b>Hadoop HDFS copyToLocal Command Example:<\/b><\/p>\n<p>Here in this example, we are trying to copy the \u2018sample\u2019 file present in the newDataFlair directory of HDFS to the local file system.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75477\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13.png\" alt=\"copyToLocal command - HDFS commands\" width=\"1299\" height=\"123\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13-150x14.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13-300x28.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13-768x73.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13-1024x97.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/copyToLocalcommand-HDFScommands13-520x49.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>We can cross-check whether the file is copied or not using the <strong>ls<\/strong> command.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75478\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14.png\" alt=\"checking file copiedtolocal command - HDFS commands\" width=\"1299\" height=\"209\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14-768x124.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14-1024x165.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingfilecopiedtolocalcommand-HDFScommands14-520x84.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS copyToLocal Description:<\/b><\/p>\n<p><strong>copyToLocal<\/strong> command copies the file from HDFS to the local file system.<\/p>\n<h3>8. cat<\/h3>\n<p><b>Hadoop HDFS cat Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013cat \/path_to_file_in_hdfs<\/pre>\n<p><b>Hadoop HDFS cat Command Example:<\/b><\/p>\n<p>Here in this example, we are using the cat command to display the content of the \u2018sample\u2019 file present in newDataFlair directory of HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75480\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10.png\" alt=\"cat command - HDFS commands\" width=\"1299\" height=\"202\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10-300x47.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10-768x119.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10-1024x159.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/catcommand-HDFScommands-copy10-520x81.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS cat Command Description:<\/b><\/p>\n<p>The <strong>cat<\/strong> command reads the file in HDFS and displays the content of the file on console or stdout.<\/p>\n<h3>9. mv<\/h3>\n<p><b>Hadoop HDFS mv Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -mv &lt;src&gt; &lt;dest&gt;<\/pre>\n<p><b>Hadoop HDFS mv Command Example:<\/b><\/p>\n<p>In this example, we have a directory \u2018DR1\u2019 in HDFS. We are using <strong>mv<\/strong> command to move the DR1 directory to the DataFlair directory in HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75481\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19.png\" alt=\"mv-command-HDFS-commands\" width=\"1299\" height=\"494\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19-150x57.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19-300x114.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19-768x292.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19-1024x389.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/mvcommand-HDFScommands19-520x198.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS mv Command Description:<\/b><\/p>\n<p>The HDFS mv command moves the files or directories from the source to a destination within <strong><a href=\"http:\/\/data-flair.training\/blogs\/comprehensive-hdfs-guide-introduction-architecture-data-read-write-tutorial\/\">HDFS<\/a>.<\/strong><\/p>\n<h3>10. cp<\/h3>\n<p><b>Hadoop HDFS cp Command Usage:<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs -cp &lt;src&gt; &lt;dest&gt;<\/pre>\n<p><b>Hadoop HDFS cp Command Example:<\/b><\/p>\n<p>In the below example we are copying the \u2018file1\u2019 present in newDataFlair directory in HDFS to the dataflair directory of HDFS.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75482\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24.png\" alt=\"cp command - HDFS commands\" width=\"1299\" height=\"199\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24-300x46.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24-768x118.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24-1024x157.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/cpcommand-HDFScommands24-520x80.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\/2016\/06\/checkingforcopiedfile-HDFScommands25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75483\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25.png\" alt=\"\" width=\"1299\" height=\"314\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25.png 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25-150x36.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25-300x73.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25-768x186.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25-1024x248.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/checkingforcopiedfile-HDFScommands25-520x126.png 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><b>Hadoop HDFS cp Command Description:<\/b><\/p>\n<p>The <strong>cp<\/strong> command copies a file from one directory to another directory within the HDFS.<\/p>\n<p>So this was all on Hadoop HDFS Commands. Hope you like it.<\/p>\n<h2>What&#8217;s Next<\/h2>\n<ul>\n<li><strong><a href=\"http:\/\/data-flair.training\/blogs\/most-used-hdfs-commands-examples\/\">Hadoop HDFS Commands Part-II<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/data-flair.training\/blogs\/play-with-hadoop-hdfs-using-commands-tutorial\/\">Hadoop HDFS Commands Part-III<\/a><\/strong><\/li>\n<\/ul>\n<p>In case of any queries or feedback regarding Hadoop HDFS Commands feel free to let us know it in the comment section and we will get back to you.<\/p>\n<p>Keep Practicing!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Explore the most essential and frequently used Hadoop HDFS commands to perform file operations on the world\u2019s most reliable storage. Hadoop HDFS is a distributed file system that provides redundant storage space for files&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":75484,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[5201,5231,5258,5341,5555,21824,8144,8145],"class_list":["post-443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hdfs","tag-hadoop-admin","tag-hadoop-commands","tag-hadoop-hdfs-commands","tag-hadoop-training","tag-hdfs-commands","tag-hdfs-commands-cheat-sheet","tag-learn-hdfs","tag-learn-hdfs-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Top 10 Hadoop HDFS Commands with Examples and Usage - DataFlair<\/title>\n<meta name=\"description\" content=\"Hadoop HDFS commands - Learn HDFS shell commands - version, cp, mv, cat, get, copyFromLocal, put, ls, mkdir, Access Control Lists with usage and examples.\" \/>\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\/top-hadoop-hdfs-commands-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top 10 Hadoop HDFS Commands with Examples and Usage - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Hadoop HDFS commands - Learn HDFS shell commands - version, cp, mv, cat, get, copyFromLocal, put, ls, mkdir, Access Control Lists with usage and examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/\" \/>\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:08:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T17:04:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top 10 Hadoop HDFS Commands with Examples and Usage - DataFlair","description":"Hadoop HDFS commands - Learn HDFS shell commands - version, cp, mv, cat, get, copyFromLocal, put, ls, mkdir, Access Control Lists with usage and examples.","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\/top-hadoop-hdfs-commands-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Top 10 Hadoop HDFS Commands with Examples and Usage - DataFlair","og_description":"Hadoop HDFS commands - Learn HDFS shell commands - version, cp, mv, cat, get, copyFromLocal, put, ls, mkdir, Access Control Lists with usage and examples.","og_url":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-06-13T09:08:11+00:00","article_modified_time":"2021-08-25T17:04:04+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Top 10 Hadoop HDFS Commands with Examples and Usage","datePublished":"2016-06-13T09:08:11+00:00","dateModified":"2021-08-25T17:04:04+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/"},"wordCount":906,"commentCount":17,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg","keywords":["hadoop admin","hadoop commands","hadoop hdfs commands","hadoop training","HDFS Commands","hdfs commands cheat sheet","Learn HDFS","Learn HDFS commands"],"articleSection":["HDFS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/","url":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/","name":"Top 10 Hadoop HDFS Commands with Examples and Usage - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg","datePublished":"2016-06-13T09:08:11+00:00","dateModified":"2021-08-25T17:04:04+00:00","description":"Hadoop HDFS commands - Learn HDFS shell commands - version, cp, mv, cat, get, copyFromLocal, put, ls, mkdir, Access Control Lists with usage and examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/top-10-hadoop-hdfs-commands.jpg","width":802,"height":420,"caption":"hadoop hdfs commands"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/#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":"Top 10 Hadoop HDFS Commands with Examples and 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\/443","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=443"}],"version-history":[{"count":13,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":75605,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/443\/revisions\/75605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/75484"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}