

{"id":53192,"date":"2019-04-02T11:01:56","date_gmt":"2019-04-02T05:31:56","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=53192"},"modified":"2021-08-25T22:32:33","modified_gmt":"2021-08-25T17:02:33","slug":"commands-in-hadoop","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/","title":{"rendered":"10 Most Frequently Used Hadoop Commands With Examples"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In this blog, we are going to explore most frequently used commands in Hadoop. These commands aid in performing various <a href=\"https:\/\/data-flair.training\/blogs\/hadoop-hdfs-data-read-and-write-operations\/\"><strong>HDFS file operations<\/strong><\/a>. These include copying a file, moving a file, showing the contents of the file, creating directories, etc. So let us begin with an introduction and then we will see different commands in Hadoop with examples.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-53231 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg\" alt=\"10 Most Frequently Used Hadoop Commands\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h2><span style=\"font-weight: 400\">Top Hadoop Commands<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hadoop stores petabytes of data using HDFS. <a href=\"https:\/\/data-flair.training\/blogs\/hadoop-hdfs-tutorial\/\"><strong>HDFS is a distributed file system<\/strong><\/a> which stores structured to unstructured data. It provides redundant storage for files having humongous size. There are various commands to perform different file operations. Let us take a look at some of the important Hadoop commands.<\/span><\/p>\n<p><strong>List of Hadoop Commands<\/strong><\/p>\n<h3>1. version<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> version<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: version<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/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\/2019\/03\/hadoop-version.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53210\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version.png\" alt=\"Commands in Hadoop\" width=\"1036\" height=\"255\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version.png 1036w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version-150x37.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version-300x74.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version-768x189.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version-1024x252.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-version-520x128.png 520w\" sizes=\"auto, (max-width: 1036px) 100vw, 1036px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> Shows the version of hadoop installed.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-distributed-cache\/\"><strong>You must read about Hadoop Distributed Cache<\/strong><\/a><\/p>\n<h3>2. mkdir<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> mkdir<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: mkdir &lt;path&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -mkdir \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53212\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1.png\" alt=\"Commands in Hadoop\" width=\"1085\" height=\"136\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1.png 1085w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1-150x19.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1-300x38.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1-768x96.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1-1024x128.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mkdir-command-1-520x65.png 520w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This command takes the &lt;path&gt; as an argument and creates the directory.<\/span><\/p>\n<h3>3. Is<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> ls<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: ls &lt;path&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -ls \/user\/dataflair<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53213\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command.png\" alt=\"Commands in Hadoop\" width=\"1023\" height=\"170\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command.png 1023w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command-150x25.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command-300x50.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command-768x128.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-ls-command-520x86.png 520w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This command displays the contents of the directory specified by &lt;path&gt;. It shows the name, permissions, owner, size and modification date of each entry.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-namenode-automatic-failover\/\"><strong>Do you know about Hadoop Automatic Failover?<\/strong><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Second Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -ls -R \/user<\/pre>\n<p><span style=\"font-weight: 400\">&lt;insert image ls-R.png&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This command behaves like ls but displays entries in all the sub-directories recursively<\/span><\/p>\n<h3>4. put<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> put<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: put &lt;localsrc&gt; &lt;dest&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -put \/home\/sample.txt \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53214\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command.png\" alt=\"Commands in Hadoop\" width=\"787\" height=\"145\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command.png 787w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command-150x28.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command-300x55.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command-768x141.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-put-command-520x96.png 520w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/a><\/p>\n<p><strong>Description:<\/strong> This command copies the file in the local filesystem to the file in DFS.<\/p>\n<h3>5. copyFrom Local<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:\u00a0<\/span><b>copyFrom Local<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: copyFrom Local &lt;localsrc&gt; &lt;dest&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -copyFromLocal \/home\/sample \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53215\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command.png\" alt=\"Commands in Hadoop\" width=\"847\" height=\"139\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command.png 847w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command-150x25.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command-300x49.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command-768x126.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyFromLocal-Command-520x85.png 520w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/a><\/p>\n<p><strong>Description:<\/strong> This command is similar to put command. But the source should refer to local file.<\/p>\n<h3>6. get<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b>get<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: get &lt;src&gt; &lt;localdest&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -get \/user\/dataflair\/dir1 \/home<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53216\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command.png\" alt=\"Commands in Hadoop\" width=\"870\" height=\"136\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command.png 870w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command-300x47.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command-768x120.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-get-Command-520x81.png 520w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/a><\/p>\n<p><strong>Description:<\/strong> This<strong> Hadoop shell command<\/strong> copies the file in HDFS identified by &lt;src&gt; to file in local file system identified by &lt;localdest&gt;<\/p>\n<p><span style=\"font-weight: 400\"><strong>Second Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -getmerge \/user\/dataflair\/dir1\/sample.txt \/user\/dataflair\/dir2\/sample2.txt \/home\/sample1.txt<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53217\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command.png\" alt=\"Commands in hadoop\" width=\"1314\" height=\"168\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command.png 1314w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command-150x19.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command-300x38.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command-768x98.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command-1024x131.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getmerge-command-520x66.png 520w\" sizes=\"auto, (max-width: 1314px) 100vw, 1314px\" \/><\/a><\/p>\n<p><strong>Description:<\/strong> This <strong><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-hdfs-commands\/\">HDFS command<\/a><\/strong> retrieves all files in the source path entered by the user in HDFS. And merges them into one single file created in the local file system identified by local destination.<\/p>\n<p><span style=\"font-weight: 400\"><strong>Third Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013getfacl \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53218\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command.png\" alt=\"commands in Hadoop\" width=\"872\" height=\"204\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command.png 872w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command-150x35.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command-300x70.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command-768x180.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/hadoop-getfacl-command-520x122.png 520w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Fourth Example:<\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013getfacl -R \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53219\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command.png\" alt=\"commands in Hadoop\" width=\"865\" height=\"358\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command.png 865w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command-150x62.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command-300x124.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command-768x318.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfacl-r-command-520x215.png 520w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a><\/p>\n<p><strong>Description:<\/strong> This Hadoop command shows the Access Control Lists (ACLs) of files and directories. This command displays default ACL if the directory contains the same.<\/p>\n<p><span style=\"font-weight: 400\">Options : -R: It recursively displays a list of all the ACLs of all files and directories.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Fifth Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs \u2013getfattr \u2013d \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53220\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command.png\" alt=\"Commands in Hadoop\" width=\"865\" height=\"133\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command.png 865w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command-300x46.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command-768x118.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-getfattr-d-command-520x80.png 520w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This HDFS command displays if there is any extended attribute names and values for the specified file or directory. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Options:<\/span><span style=\"font-weight: 400\">-R: It lists the attributes for all files and directories recursively. -n name: It shows the named extended attribute value. -d: It shows all the extended attribute values associated with the pathname. -e encoding: Encodes values after extracting them. The valid coded forms that are \u201ctext\u201d, \u201chex\u201d, and \u201cbase64\u201d. The values which are encoded as text strings gets enclosed with double quotes (\u201d \u201c). It uses prefix 0x for hexadecimal conversion. And 0s for all the values which gets coded as base64.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-schedulers\/\">Don&#8217;t forget to learn about Hadoop Schedulers\u00a0<\/a><\/strong><\/p>\n<h3>7. copyToLocal<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:\u00a0<\/span><b>copyToLocal<\/b><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: copyToLocal &lt;src&gt; &lt;localdest&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -copyToLocal \/user\/dataflair\/dir1 \/home<\/pre>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53221\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command.png\" alt=\"commands in hadoop\" width=\"811\" height=\"129\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command.png 811w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command-768x122.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-copyToLocal-command-520x83.png 520w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> It is similar to get command. Only the difference is that in this the destination of copied file should refer to a local file.<\/span><\/p>\n<h3>8. cat<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> cat<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: cat &lt;file-name&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -cat \/user\/dataflair\/dir1\/sample.txt<\/pre>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53222\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command.png\" alt=\"commands in hadoop\" width=\"790\" height=\"141\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command.png 790w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command-150x27.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command-300x54.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command-768x137.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cat-command-520x93.png 520w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This<a href=\"https:\/\/hadoop.apache.org\/docs\/r2.6.3\/hadoop-project-dist\/hadoop-common\/FileSystemShell.html\"> Hadoop shell command<\/a> displays the contents of file on console or stdout.<\/span><\/p>\n<h3>9. mv<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> mv<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: mv &lt;src&gt; &lt;dest&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -mv \/user\/dataflair\/dir1\/sample.txt \/user\/dataflair\/dir2<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53225\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command.png\" alt=\"commands in hadoop\" width=\"955\" height=\"168\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command.png 955w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command-150x26.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command-300x53.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command-768x135.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-mv-command-520x91.png 520w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This Hadoop shell command moves the file from the specified source to destination within HDFS.\u00a0<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-hdfs-disk-balancer\/\">Have a look at HDFS Disk Balancer<\/a><\/strong><\/p>\n<h3>10. cp<\/h3>\n<p><span style=\"font-weight: 400\">Command Name:<\/span><b> cp<\/b><\/p>\n<p><span style=\"font-weight: 400\">Command Usage: cp &lt;src&gt; &lt;dest&gt;<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Example:<\/strong> <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -cp \/user\/dataflair\/dir2\/sample.txt \/user\/dataflair\/dir1<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53230\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command.png\" alt=\"Commands in hadoop\" width=\"914\" height=\"186\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command.png 914w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command-150x31.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command-300x61.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command-768x156.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Hadoop-cp-command-520x106.png 520w\" sizes=\"auto, (max-width: 914px) 100vw, 914px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\"><strong>Description:<\/strong> This Hadoop shell command copies the file or directory from given source to destination within HDFS.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/50-hadoop-interview-questions-and-answers\/\"><strong>You must check 50 most asked Hadoop interview questions<\/strong><\/a><\/p>\n<h2><span style=\"font-weight: 400\">Summary<\/span><\/h2>\n<p><span style=\"font-weight: 400\">There are many commands in \u201c$HADOOP_HOME\/bin\/hadoop fs\u201d other than what we have discussed in this tutorial. What we have covered are the frequently used basic commands to get started. If you are stuck somewhere then type the following: <\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$HADOOP_HOME\/bin\/hadoop fs -help commandName<\/pre>\n<p><span style=\"font-weight: 400\">This will display a short usage summary of the command specified.<\/span><\/p>\n<p>Still, if you have any questions related to Hadoop Commands, ask in the comment section. We will definitely get back to you.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1608,&quot;href&quot;:&quot;https:\\\/\\\/hadoop.apache.org\\\/docs\\\/r2.6.3\\\/hadoop-project-dist\\\/hadoop-common\\\/FileSystemShell.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251209130511\\\/https:\\\/\\\/hadoop.apache.org\\\/docs\\\/r2.6.3\\\/hadoop-project-dist\\\/hadoop-common\\\/FileSystemShell.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 16:59:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-15 10:14:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-18 11:16:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-27 17:45:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 02:58:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 09:44:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-16 05:47:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-27 05:38:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-31 10:01:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 02:06:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 06:49:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-13 07:29:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 06:26:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 20:59:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 14:25:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 05:52:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 05:50:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 20:39:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 09:01:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 01:13:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 08:40:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-01 12:29:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 04:38:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 13:39:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-18 16:22:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 06:27:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 16:25:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-06 13:37:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-11 05:27:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-18 16:41:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-24 13:41:23&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-24 13:41:23&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to explore most frequently used commands in Hadoop. These commands aid in performing various HDFS file operations. These include copying a file, moving a file, showing the contents&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":53231,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[19387,5231,19386],"class_list":["post-53192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hadoop","tag-commands-in-hadoop","tag-hadoop-commands","tag-hadoop-commands-list"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>10 Most Frequently Used Hadoop Commands With Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"Explore the top 10 commands in Hadoop with their example and usage - version, copyfromLocal, copyToLocal, mkdir, Is, put, get etc\" \/>\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\/commands-in-hadoop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 Most Frequently Used Hadoop Commands With Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Explore the top 10 commands in Hadoop with their example and usage - version, copyfromLocal, copyToLocal, mkdir, Is, put, get etc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/\" \/>\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=\"2019-04-02T05:31:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T17:02:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"10 Most Frequently Used Hadoop Commands With Examples - DataFlair","description":"Explore the top 10 commands in Hadoop with their example and usage - version, copyfromLocal, copyToLocal, mkdir, Is, put, get etc","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\/commands-in-hadoop\/","og_locale":"en_US","og_type":"article","og_title":"10 Most Frequently Used Hadoop Commands With Examples - DataFlair","og_description":"Explore the top 10 commands in Hadoop with their example and usage - version, copyfromLocal, copyToLocal, mkdir, Is, put, get etc","og_url":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-04-02T05:31:56+00:00","article_modified_time":"2021-08-25T17:02:33+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"10 Most Frequently Used Hadoop Commands With Examples","datePublished":"2019-04-02T05:31:56+00:00","dateModified":"2021-08-25T17:02:33+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/"},"wordCount":745,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg","keywords":["Commands in Hadoop","hadoop commands","hadoop Commands list"],"articleSection":["Hadoop Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/","url":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/","name":"10 Most Frequently Used Hadoop Commands With Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg","datePublished":"2019-04-02T05:31:56+00:00","dateModified":"2021-08-25T17:02:33+00:00","description":"Explore the top 10 commands in Hadoop with their example and usage - version, copyfromLocal, copyToLocal, mkdir, Is, put, get etc","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Commands-in-Hadoop.jpg","width":1200,"height":628,"caption":"10 Most Frequently Used Hadoop Commands With Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Hadoop Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hadoop\/"},{"@type":"ListItem","position":3,"name":"10 Most Frequently Used Hadoop Commands With Examples"}]},{"@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\/53192","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=53192"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/53192\/revisions"}],"predecessor-version":[{"id":53258,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/53192\/revisions\/53258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/53231"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=53192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=53192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=53192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}