

{"id":112255,"date":"2023-08-03T19:07:33","date_gmt":"2023-08-03T13:37:33","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=112255"},"modified":"2023-08-03T19:07:13","modified_gmt":"2023-08-03T13:37:13","slug":"basic-operators-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/","title":{"rendered":"Basic Operators in Linux"},"content":{"rendered":"<p>In this article, you will learn all there is to the control operators in Linux-based operating systems. We start from\u00a0 fundamentals like what an operator is and why it is used and only then jump into what operators are. We will discuss the different types of operators along with an example of it in a small shell program. So pay attention and read right till the end.<\/p>\n<h3>What are operators?<\/h3>\n<p>If variables are the building blocks in computer science, operators are more like the cement that makes these variables meaningful and sometimes even build them into expressions. Operators are symbols that perform various different actions on variables.<\/p>\n<h3>Types of operators in linux<\/h3>\n<p>The types of operators are standard in all programming languages, the only thing that seldom changes is the operators themselves. Let us look at the types of operators:<\/p>\n<p>1. Arithmetic Operators<br \/>\n2. Relational Operators<br \/>\n3. Boolean Operators<br \/>\n4. String Operators<br \/>\n5. File Test Operators<\/p>\n<p>Now that we have laid down the fundamentals, let us look at each of these types in more detail.<\/p>\n<h3>Arithmetic operators in linux<\/h3>\n<p>As the name suggests, these operators help us in doing basic arithmetic problems, just like basic math problems consist of addition, division, subtraction, and multiplication (of course math is far more advanced like integrations, trigonometry, differentiation, and do much more!). Let us look at each of the arithmetic operators in detail with an example.<\/p>\n<h4>1. Addition operator (+)<\/h4>\n<p>The addition operators are the variables it is encased in between. It is denoted by a plus symbol (+).<\/p>\n<h4>2. Subtraction operator (-)<\/h4>\n<p>The subtraction operator subtracts the variables it is encased in between. It always subtracts the second number from the first number. It is denoted by a minus symbol (-).<\/p>\n<h4>3. Division operator (\/)<\/h4>\n<p>The division operator divides the variables it is encased in between. It always divides the first number with the second number. It is denoted by a forward slash (\/).<\/p>\n<h4>4. Multiplication operator (\\*)<\/h4>\n<p>The multiplication operator divides the variables it is encased in between. It is denoted by a backslash followed by an asterisk(\\*).<\/p>\n<h4>5. Modulus operator (%)<\/h4>\n<p>The modulus operator divides the variables and prints the remainder. It is denoted by a percentage symbol (%).<\/p>\n<p>For Example: 10%3 will print 1 as output.<\/p>\n<h3>Relational operators in linux<\/h3>\n<p>As the name suggests, these operators are used to relate 2 variables, these operators come in very handy while checking conditions in loops. Let us look at each of the relational operators with examples.<\/p>\n<h4>1. Greater than operator (-gt)<\/h4>\n<p>The \u2018greater than operator\u2019 checks if the variable on the left is greater than the variable on the right or not. If it is greater, then the condition is true. It is denoted by \u201c-gt\u201d<\/p>\n<h4>2. Less than operator (-lt)<\/h4>\n<p>The \u2018less than operator\u2019 checks if the variable on the left is less than the variable on the right or not. If it is greater, then the condition is true. It is denoted by \u201c-lt\u201d<\/p>\n<h4>3. Greater than or equal to operator (-ge)<\/h4>\n<p>The \u201cgreater than or equal to\u201d operator checks if the variable or the number on the left-hand side is greater than or equal to the variable or number to its right. It is denoted by \u201c-ge\u201d&#8217;<\/p>\n<h4>4. Less than or equal to operator (-le)<\/h4>\n<p>The \u201cless than or equal to\u201d operator checks if the variable or the number on the left-hand side is lesser than or equal to the variable or number to its right. It is denoted by \u201c-le\u201d.<\/p>\n<h4>5. Equal to operator (-eq)<\/h4>\n<p>The \u201cequal to\u201d operator checks if the variables it is encased between are equal or not. It is denoted by \u201c-eq\u201d<\/p>\n<h4>6. Not equal to operator (-ne)<\/h4>\n<p>The \u201cnot equal to\u201d operator checks if the variables it is encased between are not equal. It is denoted by \u201c-ne\u201d<\/p>\n<h3>Logical operators in linux<\/h3>\n<p>Logical operators are slightly more intimidating, thankfully there are only a few of them, we will be mainly focusing on: \u201cLogical and\u201d, \u201cLogical or\u201d and \u201cLogical negation (!)\u201d. These club 2 or more relational statements to narrow down the condition even more. Let us look at how these work before we see an example.<\/p>\n<h4>1. Logical and operator (&amp;&amp;)<\/h4>\n<p>The \u201clogical and operator\u201d will be true if and only if both the conditions are true, it will be false in all other cases, meaning it will be false if any one or both of the conditions are false. It is denoted by 2 ampersand symbols (&amp;&amp;). To understand this operator better, let us look at the truth table enclosed with different scenarios:<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">NO<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION\u00a0 1<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION 2<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION\u00a0 1 &amp;&amp; CONDITION\u00a0 2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">3<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2. Logical or operator (||)<\/h4>\n<p>The \u201clogical or operator\u201d will be true if any one of the conditions is true, and it will be false if and only if both the conditions are false. It is denoted by 2 pipe symbols (||). To understand this operator better, let us look at the truth table enclosed with different scenarios:<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">NO<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION\u00a0 1<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION 2<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION\u00a0 1 || CONDITION\u00a0 2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">3<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. Logical negation (!)<\/h4>\n<p>This operator is pretty simple, it simply inverts the truth value, if it is true, it will become false and vice versa:<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">NO<\/span><\/td>\n<td><span style=\"font-weight: 400\">CONDITION\u00a0\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">! CONDITION\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">FALSE<\/span><\/td>\n<td><span style=\"font-weight: 400\">TRUE<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>String operators in linux<\/h3>\n<p>Just like we have operators on numbers, we have operators on strings too! Let us first look at all 5 string operators before we look at examples of them cumulatively.<\/p>\n<p><strong>1. =<\/strong><br \/>\nThis string operator checks if the value of two operands are equal.<\/p>\n<p><strong>2. !=<\/strong><br \/>\nThis string operator checks if the value of two operands are not equal.<\/p>\n<p><strong>3. -z<\/strong><br \/>\nThis string operator checks if the given string operand size is zero<\/p>\n<p><strong>4. -n<\/strong><br \/>\nThis string operator checks if the given string operand size is non-zero<\/p>\n<p><strong>5. Str<\/strong><br \/>\nThis string operator checks if str is not an empty string<\/p>\n<h3>File test operators<\/h3>\n<p>As the name suggests, these operators test different conditions on files. For example, these operators can check if a file is executable, ordinary, readable, is a directory or not and so many more things. Let us look at each file operator along with an example for a few.<\/p>\n<p><strong>-b operator<\/strong><br \/>\nThis file test operator checks if a file is a block special file<\/p>\n<p><strong>-c operator<\/strong><br \/>\nThis file test operator checks if the file is a character special file.<\/p>\n<p><strong>-d operator<\/strong><br \/>\nThis file test operator checks if the file is a directory.<\/p>\n<p><strong>-f operator<\/strong><br \/>\nThis file test operator checks if the file is an ordinary file or if it is a directory or special file.<\/p>\n<p><strong>-g operator<\/strong><br \/>\nThis operator checks if the file has its set group ID (SGID) bit set.<\/p>\n<p><strong>-k operator<\/strong><br \/>\nThis file test operator checks if the file has its sticky bit set.<\/p>\n<p><strong>-p operator<\/strong><br \/>\nThis file test operator checks if the file is a named pipe.<\/p>\n<p><strong>-t operator<\/strong><br \/>\nThis operator checks if the file descriptor is open and associated with a terminal.<\/p>\n<p><strong>-u operator<\/strong><br \/>\nThis operator checks if the file has its Set User ID (SUID) bit set.<\/p>\n<p><strong>-r operator<\/strong><br \/>\nThis file test operator checks if the file is readable.<\/p>\n<p><strong>-w operator<\/strong><br \/>\nThis file test operator checks if the file is writable.<\/p>\n<p><strong>-x operator<\/strong><br \/>\nThis file test operator checks if the file is executable.<\/p>\n<p><strong>-s operator<\/strong><br \/>\nThis file test operator checks if the file has size greater than zero.<\/p>\n<p><strong>-e operator<\/strong><br \/>\nThis file test operator checks if the file exists.<\/p>\n<h3>Bitwise operators in linux<\/h3>\n<p>Bitwise operators are operators that perform bitwise operations on bit patterns. Let us look at each of the 6 bitwise operators along with an example.<\/p>\n<p><strong>1. Bitwise and<\/strong><\/p>\n<p>The bitwise and operator performs the &#8220;binary and&#8221; operation on bit pattern operands.<\/p>\n<p><strong>2. Bitwise or<\/strong><\/p>\n<p>The bitwise or operator performs the &#8220;binary or &#8221; operation on bit pattern operands. It is denoted by a single ampersand symbol (&amp;)<\/p>\n<p><strong>3. Bitwise Xor<\/strong><\/p>\n<p>The bitwise Xor operator performs the &#8220;binary exclusive or&#8221; operation on bit pattern operands. It is denoted by a single pipe symbol (|)<\/p>\n<p><strong>4. Bitwise complement<\/strong><\/p>\n<p>The bitwise complement operator performs the &#8220;binary not&#8221; operation on bit pattern operands. It is denoted by a wavy hyphen symbol (~).<\/p>\n<p><strong>5. Left shift<\/strong><\/p>\n<p>The &#8220;left operator&#8221; shifts the bits of the left operand, to the left by the number of times that is specified by the operand right. It is denoted by 2 less than symbols (&lt;&lt;).<\/p>\n<p><strong>6. Right shift<\/strong><\/p>\n<p>The &#8220;right operator&#8221; shifts the bits of the left operand, to the right by the number of times that is specified by the operand right. It is denoted by 2 greater than symbols (&gt;&gt;)<\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, operators are the backbone of any programming language let alone shell programming. You have now learned what operators are and the different types of operators used in shell programming, like arithmetic, logical, relational, string operators and more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn all there is to the control operators in Linux-based operating systems. We start from\u00a0 fundamentals like what an operator is and why it is used and only then&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":112275,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27910,27266,27909],"class_list":["post-112255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-basic-operators-in-linux","tag-control-operators-in-linux","tag-operators-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Basic Operators in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Operators are symbols that perform various different actions on variables. Learn about various control operators in linux with 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\/basic-operators-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Operators in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Operators are symbols that perform various different actions on variables. Learn about various control operators in linux with examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/basic-operators-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-08-03T13:37:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.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=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Basic Operators in Linux - DataFlair","description":"Operators are symbols that perform various different actions on variables. Learn about various control operators in linux with 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\/basic-operators-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Basic Operators in Linux - DataFlair","og_description":"Operators are symbols that perform various different actions on variables. Learn about various control operators in linux with examples.","og_url":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-08-03T13:37:33+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.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":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Basic Operators in Linux","datePublished":"2023-08-03T13:37:33+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/"},"wordCount":1439,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.webp","keywords":["basic Operators in Linux","Control Operators in Linux","Operators in Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/","name":"Basic Operators in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.webp","datePublished":"2023-08-03T13:37:33+00:00","description":"Operators are symbols that perform various different actions on variables. Learn about various control operators in linux with examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/basic-operators-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-control-operators.webp","width":1200,"height":628,"caption":"linux control operators"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/basic-operators-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":"Basic Operators 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\/112255","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=112255"}],"version-history":[{"count":9,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/112255\/revisions"}],"predecessor-version":[{"id":117161,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/112255\/revisions\/117161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112275"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=112255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=112255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=112255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}