{"id":1158,"date":"2022-12-11T11:49:47","date_gmt":"2022-12-11T11:49:47","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=1158"},"modified":"2024-01-18T10:43:34","modified_gmt":"2024-01-18T10:43:34","slug":"tail-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/tail-command-in-linux\/","title":{"rendered":"The \u201ctail\u201d Command in Linux [7 Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>tail <\/strong>command in <strong>Linux <\/strong>is often used to view the last couple of lines or data inside a file. This command is helpful while <strong>looking inside<\/strong> and <strong>checking<\/strong> some data inside a file. It is a common command used to <strong>read<\/strong> or <strong>check<\/strong> files before using it for another purpose.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#B_Syntax\" >B. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#C_Options\" >C. Options<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Practical_Examples_of_%E2%80%9Ctail%E2%80%9D_Command_in_Linux\" >Practical Examples of \u201ctail\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_1_Using_the_%E2%80%9Ctail%E2%80%9D_command_to_Display_the_Last_10_Lines_of_a_File\" >Example 1: Using the \u201ctail\u201d command to Display the Last 10 Lines of\u00a0 a File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_2_Showing_N_Lines_of_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\" >Example 2: Showing N Lines of a File Using the \u201ctail\u201d Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_3_Opening_Multiple_Files_Using_the_%E2%80%9Ctail%E2%80%9D_Command\" >Example 3: Opening Multiple Files Using the \u201ctail\u201d Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_4_Displaying_the_Last_N_Bytes_of_Data_from_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\" >Example 4: Displaying the Last N Bytes of Data from a File Using the \u201ctail\u201d Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_5_Using_the_%E2%80%9Ctail%E2%80%9D_Command_to_View_All_Lines_after_NUM_Number_Line\" >Example 5: Using the \u201ctail\u201d Command to View All Lines after NUM Number Line<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_6_Viewing_Interactive_Update_of_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\" >Example 6: Viewing Interactive Update of a File Using the \u201ctail\u201d Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Example_7_Using_the_%E2%80%9Ctail%E2%80%9D_Command_Along_with_the_%E2%80%9Chead%E2%80%9D_command_to_Display_Specific_Lines_Inside_a_File\" >Example 7: Using the \u201ctail\u201d Command Along with the \u201chead\u201d command to Display Specific Lines Inside a File<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>tail <\/strong>command outputs the <strong>last <\/strong>lines of a file. But it can also be used to view only data instead of lines easily. Along with the <strong>head <\/strong>command, this command can be used to show specific file lines.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>tail <\/strong>command in Linux has a straightforward, simple syntax. It takes some <strong>options <\/strong>after the <strong>tail <\/strong>command and one or more files as <strong>arguments<\/strong>. The syntax of the tail command is as follows:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail [OPTION]... [FILE]...<\/code><\/pre>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p><strong>Note:<\/strong>\u00a0By default, the\u00a0<strong>tail<\/strong>\u00a0command will display the\u00a0<strong>last 10 lines<\/strong>. You can use multiple or no\u00a0<strong>options<\/strong>\u00a0and change how the\u00a0<strong>tail<\/strong>\u00a0command outputs.<\/p>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C. Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>tail <\/strong>command has many <strong>options <\/strong>that can be used to change the output or use the output for some other purposes. You can also use <strong>options <\/strong>to view some other information like version or help etc.<\/p>\n<p><span style=\"color: #800080;\"><strong>Useful Options:<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-n -NUM<\/strong>\u00a0(Shows\u00a0<strong>NUM<\/strong>\u00a0number of lines in the command line output)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-n NUM<\/strong>\u00a0(Shows\u00a0<strong>NUM<\/strong>\u00a0number of lines in the command line output)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-f, &#8211;follow<\/strong>\u00a0(Follows any addition to the file and updates the output in the command line)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-n +NUM<\/strong>\u00a0(Shows all the lines after\u00a0<strong>NUM<\/strong>\u00a0number of lines)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-q, &#8211;quiet, &#8211;silent<\/strong>\u00a0(Doesn\u2019t output the\u00a0<strong>header<\/strong>\u00a0line with the output)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-v, &#8211;verbose<\/strong>\u00a0(Outputs\u00a0<strong>header<\/strong>\u00a0file names)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-s, &#8211;sleep-interval<\/strong>\u00a0(sets the timer interval of update for\u00a0<strong>-f<\/strong>\u00a0option)<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p><strong>Note:<\/strong>\u00a0The\u00a0<strong>options<\/strong>\u00a0are\u00a0<strong>case-sensitive<\/strong>, so be careful about using them, to find more\u00a0<strong>options<\/strong>, use the\u00a0<strong>man tail<\/strong>\u00a0command in the command line.<\/p>\n<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_%E2%80%9Ctail%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of \u201ctail\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The tail command has many practical uses and this command is often used to look inside a file to view it or check the latest information inside the particular file. This comes in handy for log files as log files have the latest data at the end of the file and the tail command can be used to see them to understand any error or command output. Here, you will find some of the practical uses of the tail command that is frequently used by most Linux users.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Using_the_%E2%80%9Ctail%E2%80%9D_command_to_Display_the_Last_10_Lines_of_a_File\"><\/span>Example 1: Using the \u201ctail\u201d command to Display the Last 10 Lines of\u00a0 a File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">By default, the <strong>tail <\/strong>command in <strong>Linux<\/strong> takes a file as an <strong>argument <\/strong>and displays the last 10 lines as output. Here we will use 2 files named <strong>Country.txt<\/strong> and <strong>States.txt.<\/strong> The <strong>Country.txt<\/strong> file has the names of all the countries in the world alphabetically in a different line. The <strong>States.txt<\/strong> file has all the US States&#8217; names present in alphabetic order in a different line.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-1173\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1.png\" alt=\"showing Country.txt and States.txt files\" width=\"825\" height=\"426\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-300x155.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-1024x529.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-767x396.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-1536x793.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-2048x1058.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-290x150.png 290w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-678x350.png 678w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-1-788x406.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p style=\"text-align: justify;\">The general syntax is also quite simple and is shown below:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail FILE.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">Let, you want to use the file <strong>Country.txt<\/strong> on your <strong>Desktop<\/strong>. You can use the tail command on that file by the following steps:<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open <strong>Terminal <\/strong>in the <strong>Home <\/strong>directory.<\/p>\n<p style=\"text-align: justify;\">\u2777 Change the directory to <strong>Desktop <\/strong>by the following command. Use the <strong>ls <\/strong>command to check whether the file is present on the <strong>Desktop<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Type the following command to show the Last 10 countries in that list.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail Country.txt<\/code><\/pre>\n<p>\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">As you can see, the names of the<strong> last 10<\/strong> countries in that list are displayed in the command line.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1163\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2.png\" alt=\"Using tail command in linux in default \" width=\"825\" height=\"484\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-300x176.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-1024x601.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-767x450.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-1536x901.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-2048x1201.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-256x150.png 256w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-100x59.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-597x350.png 597w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-2-788x462.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Showing_N_Lines_of_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\"><\/span>Example 2: Showing N Lines of a File Using the \u201ctail\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Suppose, you want to view the <strong>last 5<\/strong> countries in a file, not the default 10 values. You can use the <strong>-n<\/strong> option to specify how many lines you want to see. There are 2 different ways to use this option. The general syntax is as follows.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n -5 FILE.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n 5 FILE.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -5 FILE.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">In this case, suppose you want to view the <strong>last 5<\/strong> country names in the list. To do that follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal<\/strong> in the <strong>Home<\/strong> Directory.<\/p>\n<p style=\"text-align: justify;\">\u2777Change the directory to where the file resides. Here, I will get inside the <strong>Desktop <\/strong>and view the files using the following commands.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Type any of the three commands below with the <strong>-n<\/strong> <strong>option<\/strong> to view only the <strong>last 5<\/strong> countries in the list.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n -5 Country.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n 5 Country.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -5 Country.txt<\/code><\/pre>\n<p>\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">You can see that both of these commands show the same result which is the <strong>last 5<\/strong> countries in the list.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1164\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3.png\" alt=\"using tail command in linux to view 5 lines\" width=\"825\" height=\"482\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-300x175.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-1024x598.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-767x448.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-1536x897.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-2048x1197.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-257x150.png 257w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-100x58.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-599x350.png 599w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-3-788x460.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Opening_Multiple_Files_Using_the_%E2%80%9Ctail%E2%80%9D_Command\"><\/span>Example 3: Opening Multiple Files Using the \u201ctail\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can also view the last lines of multiple files using the <strong>tail <\/strong>command in <strong>Linux<\/strong>. In that case, you just need to use all the file names as <strong>arguments<\/strong>. The general syntax is as follows:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail FILE1 FILE2<\/code><\/pre>\n<p style=\"text-align: justify;\">Let\u2019s say you want to display the<strong> last 5<\/strong> lines in both <strong>Country.txt<\/strong> and<strong> States.txt<\/strong> files. You have to follow the steps below:<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal<\/strong> in the <strong>Home<\/strong> Directory.<\/p>\n<p style=\"text-align: justify;\">\u2777 Get inside the <strong>Desktop<\/strong> or other directory where the files reside. Check the files using the <strong>ls<\/strong> command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Type the following command to view the <strong>last 5<\/strong> lines from both files.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n -5 Country.txt States.txt<\/code><\/pre>\n<p>\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">You will find the <strong>last 5<\/strong> lines of both files with the <strong>header<\/strong> file names.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1165\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4.png\" alt=\"Opening multiple files using tail command in linux\" width=\"825\" height=\"559\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-300x203.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-1024x694.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-767x520.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-1536x1041.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-2048x1388.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-221x150.png 221w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-100x68.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-517x350.png 517w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-4-788x533.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Displaying_the_Last_N_Bytes_of_Data_from_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\"><\/span>Example 4: Displaying the Last N Bytes of Data from a File Using the \u201ctail\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Sometimes you may want to display data not in lines, but in characters or <strong>bytes<\/strong>. In that case, you need to use a different <strong>option<\/strong>. Using the<strong> -c<\/strong> <strong>option<\/strong>, you can display the last<strong> N bytes<\/strong> of data inside the file. There are two general syntaxes of the command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -c -20 FILE.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -c 20 FILE.txt<\/code><\/pre>\n<p>You can follow the steps below to try this out.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal <\/strong>in the <strong>Home <\/strong>directory.<\/p>\n<p style=\"text-align: justify;\">\u2777 Change the directory to the folder where the file resides. In this case, you need to get inside the <strong>Desktop <\/strong>as that\u2019s where the<strong> Country.txt<\/strong> file is.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Type the following command to view the <strong>20 bytes<\/strong> of data from the files below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -c -20 Country.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail -c 20 Country.txt<\/code><\/pre>\n<p>\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">As you can see from the image below, only <strong>20 character or bytes<\/strong> of data is shown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1166 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5.png\" alt=\"thowing last n bytes of data\" width=\"825\" height=\"436\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-300x159.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-1024x541.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-766x405.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-1536x812.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-2048x1082.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-284x150.png 284w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-100x53.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-662x350.png 662w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-5-788x416.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Using_the_%E2%80%9Ctail%E2%80%9D_Command_to_View_All_Lines_after_NUM_Number_Line\"><\/span>Example 5: Using the \u201ctail\u201d Command to View All Lines after NUM Number Line<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can view all the lines after a certain line number using the <strong>-n +NUM<\/strong> option. It is quite similar to the other application of the <strong>-n<\/strong> option but in this case, the <strong>+NUM<\/strong> part is added where <strong>NUM <\/strong>is the number of lines from which the command displays all lines <strong>onwards<\/strong>. The general syntax is as follows.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n +NUM FILE.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail +NUM FILE.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">Suppose, in this case, you want to use the <strong>Country.txt <\/strong>file to view all the lines from 170 onwards.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal <\/strong>in the <strong>Home <\/strong>director.<\/p>\n<p style=\"text-align: justify;\">\u2777 Now get inside the director where you\u2019re keeping the<strong> Country.txt<\/strong> file. In this case, the <strong>Country.txt<\/strong> file is inside the <strong>Desktop<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Now you can type the following command to display all the lines from line <strong>170 onwards<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n +170 Country.txt<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">tail +170 Country.txt<\/code><\/pre>\n<p>\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">Here is the list of country names from <strong>170 onwards<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1168\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7.png\" alt=\"Main file of Country.txt\" width=\"825\" height=\"673\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-300x245.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-1024x835.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-767x626.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-1536x1253.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-2048x1671.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-184x150.png 184w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-100x82.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-429x350.png 429w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-7-788x642.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p style=\"text-align: justify;\">Here you will find all the lines from <strong>170 onwards<\/strong> displayed in the command line just like the image below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1167\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6.png\" alt=\"using tail command in linux to show lines onwards\" width=\"825\" height=\"569\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-300x207.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-1024x706.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-767x529.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-1536x1059.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-2048x1412.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-217x150.png 217w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-100x69.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-507x350.png 507w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-6-788x543.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Viewing_Interactive_Update_of_a_File_Using_the_%E2%80%9Ctail%E2%80%9D_Command\"><\/span>Example 6: Viewing Interactive Update of a File Using the \u201ctail\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>tail <\/strong>command is often used as a <strong>medium<\/strong> to view log files. In this method, any change to the files is automatically shown in the command line where the <strong>tail <\/strong>command is running. To do this you need to use the <strong>-f<\/strong> or<strong> &#8211;follow<\/strong> <strong>option <\/strong>as these <strong>options <\/strong>follow any change to the file. The general syntax is shown below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -f FILE.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">In this option, the command will show the last 10 lines and keep running the command until <strong>CTRL + C<\/strong> is pressed to get out of the command. Until then any change inside the files will be shown in the <strong>Terminal<\/strong>. You can use the following steps to try this command as it\u2019s quite often.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal <\/strong>in the <strong>Home <\/strong>directory.<\/p>\n<p style=\"text-align: justify;\">\u2777 Again change the directory to the folder where your files remain. In this case, you need to get inside the <strong>Desktop<\/strong>. Use the following commands.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Type the following command to run this command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -f Country.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2779 Now you can add a line in that file using another command prompt. Use the following <strong>echo <\/strong>command to <strong>redirect <\/strong>the <strong>echo <\/strong>command and <strong>append <\/strong>it to the <strong>Country.txt<\/strong> file.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">echo &quot;That&#039;s the End of All Countries in the World&quot; &gt;&gt; Desktop\/Country.txt<\/code><\/pre>\n<p style=\"text-align: justify;\">\u277a You will find that the command line is showing the new line <strong>\u201cThat\u2019s the End of All Countries in the World\u201d<\/strong><\/p>\n<p style=\"text-align: justify;\">\u277b Press the <strong>ENTER <\/strong>key.<\/p>\n<p style=\"text-align: justify;\">\u277c Press <strong>CTRL + C<\/strong> to close the command.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">As you can see, just <strong>updating<\/strong> the file with a new line added that new line to the prompt.<\/p>\n<p><span style=\"color: #800080;\"><strong>Before Adding New Line:<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1169\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8.png\" alt=\"before using -f option\" width=\"825\" height=\"426\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-300x155.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-1024x529.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-767x396.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-1536x793.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-2048x1058.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-290x150.png 290w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-678x350.png 678w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-8-788x406.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p><strong>Note:<\/strong>\u00a0You&#8217;ve to press<strong>\u00a0CTRL + C<\/strong>\u00a0or close the\u00a0<strong>Terminal<\/strong>\u00a0to quit this command and start a new one.<\/p>\n<\/div><\/div>\n<p><span style=\"color: #800080;\"><strong>After Adding the New Line:<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1170\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9.png\" alt=\"after using -f option\" width=\"825\" height=\"426\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-300x155.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-1024x529.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-767x396.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-1536x793.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-2048x1058.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-290x150.png 290w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-678x350.png 678w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-9-788x406.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_Using_the_%E2%80%9Ctail%E2%80%9D_Command_Along_with_the_%E2%80%9Chead%E2%80%9D_command_to_Display_Specific_Lines_Inside_a_File\"><\/span>Example 7: Using the \u201ctail\u201d Command Along with the \u201chead\u201d command to Display Specific Lines Inside a File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Sometimes you may want to find the lines between<strong> 5-10<\/strong> or <strong>75-100<\/strong>, This is possible using the combination of both <strong>head <\/strong>and <strong>tail <\/strong>commands. The general syntax of this command is as follows.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">head -NUM1 FILE.txt|tail +NUM2<\/code><\/pre>\n<p style=\"text-align: justify;\">Here at first the first <strong>NUM1<\/strong> files as taken by using the head command. Then from that list, <strong>tail +NUM2<\/strong> will display all the numbers from <strong>NUM2<\/strong>. It\u2019s a bit hard to understand. Let\u2019s use an example. Follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u2776 Open the <strong>Terminal <\/strong>in the <strong>Home <\/strong>directory.<\/p>\n<p style=\"text-align: justify;\">\u2777 Change into the directory where you kept the file. Here, you\u2019ll get inside the <strong>Desktop<\/strong>. Use the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cd Desktop\/<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">\u2778 Let, you want to view the lines from<strong> 5 to 10<\/strong>. Use the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">head -10 Country.txt|tail +5<\/code><\/pre>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p><strong>Note:<\/strong>\u00a0The\u00a0<strong>head<\/strong>\u00a0command should have a\u00a0<strong>larger<\/strong>\u00a0number than the\u00a0<strong>tail<\/strong>\u00a0command, otherwise there&#8217;ll be an error.<\/p>\n<\/div><\/div>\n<p style=\"text-align: justify;\">Here at first, you took the first <strong>10 lines<\/strong> from the <strong>Country.txt<\/strong>. Then <strong>piped <\/strong>it through the <strong>tail <\/strong>command to show only the from line <strong>5 onwards<\/strong>. So, in the end, you have lines from<strong> 5-10<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u2779 Press the <strong>ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">As you can see, the command line only shows lines <strong>5-10<\/strong>. We can check it from the actual file as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1171\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10.png\" alt=\"Finding 5-10 lines\" width=\"825\" height=\"426\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-300x155.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-1024x529.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-767x396.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-1536x793.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-2048x1058.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-290x150.png 290w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-678x350.png 678w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-10-788x406.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, you\u2019ve learned about some practical use of the <strong>tail<\/strong> command and how this command can be used with <strong>redirection<\/strong> and <strong>piping<\/strong> to achieve certain functions. You\u2019ll certainly see the use of these commands in real life and they will come as immensely useful for your day-to-day and professional life. Again, I\u2019ll suggest you not to memorize and just practice. That way, you\u2019ll certainly understand the logic and use these options in much different professional use.<\/p>\n<hr \/>\n<p><span style=\"font-size: 18pt; color: #000080;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/cat-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccat\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/head-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201chead\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/less-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cless\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/more-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cmore\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;1158&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201ctail\u201d Command in Linux [7 Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The tail command in Linux is often used to view the last couple of lines or data inside a file. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201ctail\u201d Command in Linux [7 Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/#more-1158\" aria-label=\"Read more about The \u201ctail\u201d Command in Linux [7 Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314887,"featured_media":1161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[54],"class_list":["post-1158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-file-viewing-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rafsanzn\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-11T11:49:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-18T10:43:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rafsan Zani\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rafsan Zani\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/\"},\"author\":{\"name\":\"Rafsan Zani\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/8e7276de56e31a832a5d020c11c45e19\"},\"headline\":\"The \u201ctail\u201d Command in Linux [7 Practical Examples]\",\"datePublished\":\"2022-12-11T11:49:47+00:00\",\"dateModified\":\"2024-01-18T10:43:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/\"},\"wordCount\":1863,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/tail-command-in-linux-0.png\",\"keywords\":[\"file viewing commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/\",\"name\":\"The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/tail-command-in-linux-0.png\",\"datePublished\":\"2022-12-11T11:49:47+00:00\",\"dateModified\":\"2024-01-18T10:43:34+00:00\",\"description\":\"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/tail-command-in-linux-0.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/tail-command-in-linux-0.png\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/tail-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201ctail\u201d Command in Linux [7 Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/8e7276de56e31a832a5d020c11c45e19\",\"name\":\"Rafsan Zani\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"caption\":\"Rafsan Zani\"},\"description\":\"Hello, I\u2019m Md. Rafsan Zani. I have recently completed my Undergraduate from the Bangladesh University of Engineering and Technology (BUET). Currently, I\u2019m pursuing higher studies abroad. I\u2019m really interested in computer science and would like to learn a lot about the wonderful world of computers. Currently, I\u2019m working as a Linux Content Developer Executive and find Linux really interesting. I certainly would like to learn more about Linux and implement them in my future studies. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/rafsanzn\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/md-rafsan-zani-072838168\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/rafsan-zani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply","description":"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.","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:\/\/linuxsimply.com\/tail-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply","og_description":"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.","og_url":"https:\/\/linuxsimply.com\/tail-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/rafsanzn\/","article_published_time":"2022-12-11T11:49:47+00:00","article_modified_time":"2024-01-18T10:43:34+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png","type":"image\/png"}],"author":"Rafsan Zani","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rafsan Zani","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/"},"author":{"name":"Rafsan Zani","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/8e7276de56e31a832a5d020c11c45e19"},"headline":"The \u201ctail\u201d Command in Linux [7 Practical Examples]","datePublished":"2022-12-11T11:49:47+00:00","dateModified":"2024-01-18T10:43:34+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/"},"wordCount":1863,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png","keywords":["file viewing commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/tail-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/","url":"https:\/\/linuxsimply.com\/tail-command-in-linux\/","name":"The \u201ctail\u201d Command in Linux [7 Practical Examples] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png","datePublished":"2022-12-11T11:49:47+00:00","dateModified":"2024-01-18T10:43:34+00:00","description":"The tail command in Linux is one of most used command for viewing files content. This command is also used as a log to see updates on a file.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/tail-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/tail-command-in-linux-0.png","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/tail-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201ctail\u201d Command in Linux [7 Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/8e7276de56e31a832a5d020c11c45e19","name":"Rafsan Zani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","caption":"Rafsan Zani"},"description":"Hello, I\u2019m Md. Rafsan Zani. I have recently completed my Undergraduate from the Bangladesh University of Engineering and Technology (BUET). Currently, I\u2019m pursuing higher studies abroad. I\u2019m really interested in computer science and would like to learn a lot about the wonderful world of computers. Currently, I\u2019m working as a Linux Content Developer Executive and find Linux really interesting. I certainly would like to learn more about Linux and implement them in my future studies. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/rafsanzn\/","https:\/\/www.linkedin.com\/in\/md-rafsan-zani-072838168\/"],"url":"https:\/\/linuxsimply.com\/author\/rafsan-zani\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314887"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=1158"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/1158\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/1161"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}