

{"id":111705,"date":"2023-02-07T09:00:20","date_gmt":"2023-02-07T03:30:20","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111705"},"modified":"2023-02-07T09:59:23","modified_gmt":"2023-02-07T04:29:23","slug":"cmp-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/","title":{"rendered":"Cmp Command in Linux"},"content":{"rendered":"<p>In this article, we will learn everything about the cmp command in Linux-based operating systems. We will look at what the cmp command is, why it is used, how to install it, the syntax of the cmp command, and the options used along with it.<\/p>\n<p>In the end, we will also look at some fantastic practical examples of the cmp command by pairing it with various options to understand its working. So pay attention, take notes, and read all the way to the end for the best benefits.<\/p>\n<h3>What is cmp command in Linux?<\/h3>\n<p>The cmp command is short for \u201ccompare\u201d, and as the name suggests, cmp is a command line-based utility in Linux-based operating systems that helps in comparing 2 files byte by byte.<\/p>\n<p>The cmp command is an excellent command to find the differences between 2 files. Upon comparing the 2 files, the cmp command prints the byte and line number where the first difference is found, and if it finds no differences between them, it simply prints nothing.<\/p>\n<p>Now there are far more superior tools for comparing files, one fine example is the \u201cdiff\u201d command, which not only compares the 2 files but also tells you what to change in the files to make both the files identical. Nonetheless, the cmp command gets the job done and in this article, we will explore everything about the cmp command in Linux.<\/p>\n<h3>Syntax of Linux cmp command<\/h3>\n<p>The syntax of the cmp command might look slightly intimidating at first, but once we understand the fields present in the syntax, it will become a cakewalk! The syntax of the cmp command is shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp &lt;OPTIONS&gt; &lt;FILE1 &lt;FILE2 &lt;SKIP1 &lt;SKIP2&gt;&gt;&gt;<\/pre>\n<p>The fields &lt;options&gt;, &lt;skip1&gt; and &lt;skip2&gt; are optional, but every cmp command you run must have 2 files to compare. Let us take a closer look at the fields present in the syntax of the cmp command.<\/p>\n<p><strong>1. &lt;OPTIONS&gt;<\/strong><\/p>\n<p>This field takes in a range of options that specify how the cmp command must function, format, and print the output.<\/p>\n<p><strong>2. &lt;FILE1&gt; and &lt;FILE2&gt;<\/strong><\/p>\n<p>These fields specify the name of the file to be compared against each other. You can also specify the paths of these files if they are not present in your current working directory.<\/p>\n<p><strong>3. &lt;SKIP1&gt; and &lt;SKIP2&gt;<\/strong><\/p>\n<p>These fields specify the number of bytes to be skipped at the beginning of each file. If you don\u2019t specify any number, the default will be taken as zero.<\/p>\n<h3>Options used with Linux cmp command<\/h3>\n<p>Unlike most commands in Linux, the cmp command comes with very few options that specify how the cmp command must function, format, and print the output. Let us take a detailed look at each of these options.<\/p>\n<p><strong>1. -b<\/strong><\/p>\n<p>This option prints the differing bytes. You can also write this option as \u201c&#8211;print-bytes\u201d<\/p>\n<p><strong>2. -i<\/strong><\/p>\n<p>This option skips the specified number of bytes from the beginning of the file. You can also write this option as \u201c&#8211;ignore-initial\u201d<\/p>\n<p><strong>3. -h<\/strong><\/p>\n<p>This option displays the help menu of the cmp command as shown below:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/help-menu-of-the-cmp-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111895\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/help-menu-of-the-cmp-command.webp\" alt=\"help menu of the cmp command\" width=\"1076\" height=\"411\" \/><\/a><\/p>\n<p><strong>4. -n<\/strong><\/p>\n<p>This option compares at most the specified number of bytes, it will not exceed the limit you specify. In simple terms, this option compares both the files from the beginning to the position of the byte you specified. You can also write this option as \u201c&#8211;bytes\u201d<\/p>\n<p><strong>5. -l<\/strong><\/p>\n<p>This option provides verbose to the output to get a better picture of what is happening. You can also write this option as \u201c&#8211;verbose\u201d<\/p>\n<p><strong>6. -s<\/strong><\/p>\n<p>This option enables quiet mode, where very less output is printed on the screen. This option also suppresses errors. You can also write this option as \u201c&#8211;quiet\u201d<\/p>\n<p><strong>7. -v<\/strong><\/p>\n<p>This option displays information regarding the version of the cmp command you are using on your PC as shown:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/version-of-the-cmp-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111896\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/version-of-the-cmp-command.webp\" alt=\"version of the cmp command\" width=\"1073\" height=\"195\" \/><\/a><\/p>\n<p>Now, since we have covered the theory and fundamentals regarding the cmp command, let us look at some fantastic examples of the cmp command in the terminal of ubuntu 20.04.<\/p>\n<p>Actually, before we proceed with the examples, we will be needing 2 sample text files to compare their difference. Hence let us compare the following 2 files with one difference: the word \u201cNO\u201d is missing in the 5 line of the second file:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/sample-text-files-to-test-the-cmp-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111898\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/sample-text-files-to-test-the-cmp-command.webp\" alt=\"sample text files to test the cmp command\" width=\"1072\" height=\"267\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Comparing 2 files in Linux<\/h3>\n<p>If you want to compare 2 files, you can simply use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\u201ccmp &lt;file1&gt; &lt;file2&gt;\u201d<\/pre>\n<p>For example, the command \u201ccmp file1.txt file2.txt\u201d compares the differences and prints the line number and byte number of the difference as shown in the picture below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/comparing-2-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111897\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/comparing-2-files.webp\" alt=\"comparing 2 files\" width=\"1072\" height=\"96\" \/><\/a><\/p>\n<h3>Using file path to compare<\/h3>\n<p>If you are in another directory and want to compare files that are not present in your working directory, you can specify the paths of the files as shown in the picture below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/using-file-path-to-compare.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111899\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/using-file-path-to-compare.webp\" alt=\"using file path to compare\" width=\"1074\" height=\"135\" \/><\/a><\/p>\n<h3>Printing the differing bytes<\/h3>\n<p>If you want the cmp command to print the differing bytes, run it with the option \u201c-b\u201d as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp -b &lt;file1&gt; &lt;file2&gt;<\/pre>\n<p>In the examples below, the difference found is that in file1.txt there is the letter \u201cN\u201d, whereas in file2.txt, there is the letter \u201cW\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/printing-the-differing-bytes.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111900\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/printing-the-differing-bytes.webp\" alt=\"printing the differing bytes\" width=\"1073\" height=\"99\" \/><\/a><\/p>\n<h3>Displaying all the differing bytes<\/h3>\n<p>Pairing the cmp command with the option \u201c-l\u201d prints the byte numbers and values for all differing bytes. In the output, the first column contains the byte numbers, the second and third column contain the bytes values of doc1 and doc2<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-all-the-differing-bytes.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111901\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-all-the-differing-bytes.webp\" alt=\"displaying all the differing bytes\" width=\"1073\" height=\"602\" \/><\/a><\/p>\n<h3>Skipping the first bytes of both files<\/h3>\n<p>If you want to ignore the first \u201cn\u201d bytes of both the files, you can run the cmp command by pairing it with the option \u201c-i\u201d followed by the number of bytes you want to ignore as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp -i n &lt;file1&gt; &lt;file2&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/skipping-the-first-bytes-of-both-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111902\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/skipping-the-first-bytes-of-both-files.webp\" alt=\"skipping the first bytes of both files\" width=\"1074\" height=\"144\" \/><\/a><\/p>\n<h3>Skipping bytes of files separately<\/h3>\n<p>If you want to ignore the first \u201cn1\u201d bytes of file1 and the first \u201cn2\u201d bytes of file 2, you can run the cmp command by pairing it with the option \u201c-i\u201d followed by the number of bytes you want to ignore as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp -i &lt;n1&gt;:&lt;n2&gt; &lt;file1&gt; &lt;file2&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/skipping-bytes-of-files-separately.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111903\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/skipping-bytes-of-files-separately.webp\" alt=\"skipping bytes of files separately\" width=\"1073\" height=\"127\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Another method you can use to to the same is to use the &lt;skip&gt; we learned earlier by using the following syntax:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp &lt;file1&gt; &lt;file2&gt; &lt;n1&gt; &lt;n2&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/another-method-to-skip-bytes-of-files-separately.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111904\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/another-method-to-skip-bytes-of-files-separately.webp\" alt=\"another method to skip bytes of files separately\" width=\"1073\" height=\"99\" \/><\/a><\/p>\n<h3>Comparing limited bytes<\/h3>\n<p>If you want to compare only a range of the bytes in both the files, pair the cmp command with the option \u201c-n\u201d as shown in the syntax below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cmp -n &lt;LIMIT&gt; &lt;file1&gt; &lt;file2&gt;<\/pre>\n<h3>Suppressing the output<\/h3>\n<p>If you want to suppress the output of the cmp command use the option \u201cq\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/suppressing-the-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111905\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/suppressing-the-output.webp\" alt=\"suppressing the output\" width=\"1073\" height=\"153\" \/><\/a><\/p>\n<h3><span style=\"font-weight: 400\">Using Linux cmp command in shell programs<\/span><\/h3>\n<p><span style=\"font-weight: 400\">We can also use the cmp command in shell scripting! Here is one fine program making good use of the cmp command. In this program, if file one and file 2 are the same, it will print \u201cBoth files have the same content\u201d and if there are any differences, it will print \u201cBoth files have different content\u201d<\/span><\/p>\n<p>#image#<\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, the cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. You have now understood what the cmp command is, why it is used, the syntax of the cmp command, and the various options used with it along with examples.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn everything about the cmp command in Linux-based operating systems. We will look at what the cmp command is, why it is used, how to install it, the syntax&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":111769,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27213],"class_list":["post-111705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-cmp-command-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cmp Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Linux cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. Learn more about it\" \/>\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\/cmp-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cmp Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Linux cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. Learn more about it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/\" \/>\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=\"2023-02-07T03:30:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-07T04:29:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp\" \/>\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\/webp\" \/>\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=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cmp Command in Linux - DataFlair","description":"Linux cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. Learn more about it","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\/cmp-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Cmp Command in Linux - DataFlair","og_description":"Linux cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. Learn more about it","og_url":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-02-07T03:30:20+00:00","article_modified_time":"2023-02-07T04:29:23+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Cmp Command in Linux","datePublished":"2023-02-07T03:30:20+00:00","dateModified":"2023-02-07T04:29:23+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/"},"wordCount":1171,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp","keywords":["Cmp Command in Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/","name":"Cmp Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp","datePublished":"2023-02-07T03:30:20+00:00","dateModified":"2023-02-07T04:29:23+00:00","description":"Linux cmp command is a simple tool that lets you compare two files and prints the byte and line number of the difference. Learn more about it","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/linux-cmp-command.webp","width":1200,"height":628,"caption":"linux cmp command"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/cmp-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Cmp Command in Linux"}]},{"@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\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111705","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=111705"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111705\/revisions"}],"predecessor-version":[{"id":111908,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111705\/revisions\/111908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/111769"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}