

{"id":111137,"date":"2022-12-09T10:00:45","date_gmt":"2022-12-09T04:30:45","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111137"},"modified":"2022-12-09T10:16:14","modified_gmt":"2022-12-09T04:46:14","slug":"head-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/","title":{"rendered":"Head Command in Linux"},"content":{"rendered":"<p>In this article, we will learn everything about the head command in Linux. We will look at what the head command is, its uses, the syntax of the head command, and the options used along with it. In the end, we will look at some practical examples of the head command and its options to understand how they work. So pay attention, take notes and read the entire article for the best benefits.<\/p>\n<h3>What is Linux head command?<\/h3>\n<p>Head is a command-line-based utility in Linux-based operating systems that prints the first &#8220;n&#8221; number of lines or data of the given input. This input can either be a file or a data stream. The head command is the exact opposite of the tail command.<\/p>\n<p>You can state the number of lines you want the head command to print, but if you don&#8217;t specify anything, the head command will automatically print the first ten lines of the input. The best part of the head command is that you can specify more than one input file. If you do so, data from each file is preceded by its name.<\/p>\n<p>You can even pipe the head command to other shell commands like grep, sort, wc, and so many more to get more information. This is extremely helpful when you want to consider only the first &#8220;n&#8221; lines of the input. We can also pair the head command with a range of options, which we will look at how to use in later sections of this article.<\/p>\n<h3>Syntax of the head command in Linux<\/h3>\n<p>The syntax of the head command is very straightforward:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head &lt;options&gt; &lt;file&gt;<\/pre>\n<p>Let us look at the options present in the syntax of the head command:<\/p>\n<h4>1. &lt;options&gt;<\/h4>\n<p>This field takes in several options that state how the head command must function, format, and print the output. You can specify multiple options in this field.<\/p>\n<h4>2. &lt;file&gt;<\/h4>\n<p>This option takes in the name of the file we want to pass as the input to the head command. If you specify no filename, the head command will read the input from the standard input. As we discussed earlier, you can also enter multiple filenames in this field.<\/p>\n<h3>Options used with Linux head command<\/h3>\n<p>Unlike most of the commands in Linux, the head command has only a few options associated with it. Let us take a brief look at each one of them:<\/p>\n<h4>1. -c<\/h4>\n<p>This option prints the first specified number of bytes of each file. If you specify the number with a negative symbol (-), the head command will act like the tail command and print each file&#8217;s last specified number of bytes. You can also write this command as &#8220;&#8211;bytes.&#8221;<\/p>\n<h4>4. &#8211;help<\/h4>\n<p>This option prints the help menu of the head command, as shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/help-1.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111167\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/help-1.webp\" alt=\"help\" width=\"1493\" height=\"644\" \/><\/a><\/p>\n<h4>\u00a03. -n<\/h4>\n<p>This option prints the first specified number of lines instead of the first 10, which is the default setting. If you specify the number with a negative symbol (-), the head command will act like the tail command and print each file&#8217;s last specified number of lines. You can also write this command as &#8220;&#8211;lines.&#8221;<\/p>\n<h4>4. -q<\/h4>\n<p>This option never prints the headers identifying the file names. You can also write this command as &#8220;&#8211;quiet.&#8221;<\/p>\n<h4>5. &#8211;version<\/h4>\n<p>This option prints information regarding the version of the head command.<\/p>\n<p>Now that we have covered the basics and the theoretical part of the head command, let us understand how it and its options work by looking at some practical examples in the terminal of Ubuntu 20.04.<\/p>\n<p>Before we head on to look at the examples, we need a sample text file to perform the head command on, hence let us consider the sample text file shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/version.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111168\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/version.webp\" alt=\"version\" width=\"1493\" height=\"288\" \/><\/a><\/p>\n<h3>Using the head command with no options<\/h3>\n<p>If we use the head command followed by the name of the file you want the head command to read the input from, it will print the first ten lines of the file as shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/no-options-1.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111169\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/no-options-1.webp\" alt=\"no options\" width=\"1493\" height=\"327\" \/><\/a><\/p>\n<h3>Displaying a specific number of lines<\/h3>\n<p>If you want to display a particular number of lines instead of the default 10, pair the head command with the option &#8220;-n&#8221; followed by the number of lines you want to see and the filename:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head -n &lt;number&gt; &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/specific-number-of-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111170\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/specific-number-of-files.webp\" alt=\"specific number of files\" width=\"1494\" height=\"357\" \/><\/a><\/p>\n<h3>Displaying a specific number of bytes<\/h3>\n<p>To display a specific number of bytes, run the head command along with the option &#8220;-c&#8221; followed by the number of bytes you want to see and the filename:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head -c &lt;number&gt; &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/specific-number-of-bytes.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111171\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/specific-number-of-bytes.webp\" alt=\"specific number of bytes\" width=\"1493\" height=\"438\" \/><\/a><\/p>\n<h3>Displaying the filename in Linux<\/h3>\n<p>If you want to display the file&#8217;s name above the output of the head command for a better understanding, combine the head command with the option &#8220;-v&#8221;. This option provides verbose to output for a better understanding. Use the syntax shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head -v &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/display-filename.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111172\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/display-filename.webp\" alt=\"display filename\" width=\"1493\" height=\"354\" \/><\/a><\/p>\n<h3>Displaying multiple files in Linux<\/h3>\n<p>If you want to use the head command on multiple files, specify the filenames one after the other and separate them by a space as shown in the syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head &lt;filename1&gt; &lt;filename2&gt; &lt;filename3&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/displaying-multiple-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111173\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/displaying-multiple-files.webp\" alt=\"displaying multiple files\" width=\"1499\" height=\"351\" \/><\/a><\/p>\n<h3>Redirecting the output of Linux head command<\/h3>\n<p>If you want to store the output of the head command in a separate file, use the redirection operator and put the name of the file as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">head &lt;inputfile&gt; &gt; &lt;outputfile&gt;<\/pre>\n<p>Using the cat command, you can later check if the file has been created or updated successfully.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/redirecting-head-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111174\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/redirecting-head-output.webp\" alt=\"redirecting head output\" width=\"1484\" height=\"285\" \/><\/a><\/p>\n<h3>Using the head command with datastreams<\/h3>\n<p>We already saw earlier that we could also specify data streams as the input of the head command. However, to do so, we can&#8217;t specify them as we have been doing it with regular files. So instead, we pipe the head command with these data streams. Here are some examples:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-with-datastreams.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111175\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-with-datastreams.webp\" alt=\"head with datastreams\" width=\"1493\" height=\"318\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-datastreams.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111176\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-datastreams.webp\" alt=\"head datastreams\" width=\"1496\" height=\"294\" \/><\/a><\/p>\n<h3>Piping the head command with other shell commands<\/h3>\n<p>As we discussed earlier, we can pipe the head command with various other commands like wc, grep, sort, and more. Here are a couple of examples:<\/p>\n<p>In the screenshot below, we have passed the head command input as the sort command&#8217;s input. Hence the output is sorted alphabetically.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/alphabetically.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111177\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/alphabetically.webp\" alt=\"alphabetically\" width=\"1493\" height=\"369\" \/><\/a><\/p>\n<p>In the screenshot shown below, we have passed the output of the head command as the input of the wc (word count) command. Hence, the output is the count information, including the number of lines, words, and characters.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/count-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111178\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/count-information.webp\" alt=\"count information\" width=\"1493\" height=\"348\" \/><\/a><\/p>\n<p>In the screenshot below, we have passed the head command output as the grep command&#8217;s input. Hence the output prints the lines with the word &#8220;usr&#8221; in them.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/piping-head-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-111179\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/piping-head-output.webp\" alt=\"piping head output\" width=\"1493\" height=\"324\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, the head command is an extremely simple command that prints the first &#8220;n&#8221; number of lines or data of the given input. You have now understood what the head command is, why we use it, the syntax of the head command, and also the options used along with it. We have also seen a few practical examples of the head command in the Ubuntu terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn everything about the head command in Linux. We will look at what the head command is, its uses, the syntax of the head command, and the options used&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":111142,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27151,27159],"class_list":["post-111137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-head-command","tag-linux-head-options"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Head Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about the head command in linux, why we use it, the syntax of the head command, and also the options used along with 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\/head-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Head Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about the head command in linux, why we use it, the syntax of the head command, and also the options used along with it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/head-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=\"2022-12-09T04:30:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T04:46:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.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":"Head Command in Linux - DataFlair","description":"Learn about the head command in linux, why we use it, the syntax of the head command, and also the options used along with 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\/head-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Head Command in Linux - DataFlair","og_description":"Learn about the head command in linux, why we use it, the syntax of the head command, and also the options used along with it","og_url":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-12-09T04:30:45+00:00","article_modified_time":"2022-12-09T04:46:14+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.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\/head-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Head Command in Linux","datePublished":"2022-12-09T04:30:45+00:00","dateModified":"2022-12-09T04:46:14+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/"},"wordCount":1125,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.webp","keywords":["Linux head command","linux head options"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/","name":"Head Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.webp","datePublished":"2022-12-09T04:30:45+00:00","dateModified":"2022-12-09T04:46:14+00:00","description":"Learn about the head command in linux, why we use it, the syntax of the head command, and also the options used along with it","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/head-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/head-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/12\/head-command-in-linux.webp","width":1200,"height":628,"caption":"head command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/head-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":"Head 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\/111137","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=111137"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111137\/revisions"}],"predecessor-version":[{"id":111180,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111137\/revisions\/111180"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/111142"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}