{"id":831,"date":"2019-03-13T11:06:19","date_gmt":"2019-03-13T16:06:19","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=831"},"modified":"2019-03-13T11:06:19","modified_gmt":"2019-03-13T16:06:19","slug":"how-to-efficiently-manage-large-text-files-in-linux","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/","title":{"rendered":"How to Efficiently Manage Large Text Files in Linux"},"content":{"rendered":"<div id=\"linux-1062988467\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>&nbsp;<\/p>\n<p class=\"p1\"><span class=\"s1\">Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that &#8220;everything is a file&#8221;. Sure, there are databases and binary structures, but nothing like Windows&#8217; &#8220;Registry&#8221; exists. Even devices, partitions, and sockets are represented either by real or virtual files.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Given all of this, some text files can get pretty big. And often we&#8217;re not talking about dozens of MB, but possibly <i>hundreds,<\/i>\u00a0or even a few <em>gigabytes<\/em> in size in rare occasions. And all of it can be text! In fact, something as innocuous as a log file can continue to grow if left unchecked. Let&#8217;s say you have a file recording every visit to your website, along with the date, IP, user-agent, etc. For even a medium-sized website, that file can grow pretty large if not dealt with.<\/span><\/p>\n<p><!--more--><\/p>\n<p class=\"p1\"><span class=\"s1\">In this article, we&#8217;ll look at how to view these large files without slowing down your system. Sometimes you might even need to edit these large files, which is far more difficult to deal with when the files are of this magnitude. Luckily, it&#8217;s quite unheard of for a configuration file to be large enough to make it problematic to edit! Let&#8217;s begin.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Listing the Largest Files on your Linux System<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">Let&#8217;s say you need to clean out some space on your hard drive and want a list of the biggest culprits eating up your disk space. To get a list of the top 10 largest files, use this command:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">find \/ -type f -exec du -sh {} 2&gt;\/dev\/null + | sort -rh | head -n 10<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">This will give you an output like this. Note that it may take a while for the results to appear onscreen:<\/span><\/p>\n<figure id=\"attachment_832\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 691px\"><img decoding=\"async\" class=\"size-full wp-image-832\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Large-Files-Linux.jpg\" alt=\"Large Text Files\" width=\"681\" height=\"299\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Large-Files-Linux.jpg 681w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Large-Files-Linux-300x132.jpg 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><figcaption class=\"caption wp-caption-text\">List of Large Text Files<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">As you can see, most of these are binary files or databases that you can&#8217;t open directly. But often you&#8217;ll find mail logs that keep a record of even spam attempts to access your server. And if your IP address is hit often, that mail spool will just keep getting bigger and bigger, reaching hundreds of MB in a matter of a few months.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Trying to Open Large Files the Traditional Way<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">For this example, we&#8217;re going to create an example text file and bloat its size using the &#8220;truncate&#8221; command like this:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">truncate --size=20M testfile<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Where &#8220;testfile&#8221; is the sample file. This command will set its size to 20MB and fill the extra space with null characters. We can get the size of all the files in the current directory in MB using this command:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">ls -l --block-size=M<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Here&#8217;s the output:<\/span><\/p>\n<figure id=\"attachment_833\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 632px\"><img decoding=\"async\" class=\"size-full wp-image-833\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/20MB-Test-File-in-Directory.jpg\" alt=\"Creating 20MB Test File\" width=\"622\" height=\"276\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/20MB-Test-File-in-Directory.jpg 622w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/20MB-Test-File-in-Directory-300x133.jpg 300w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><figcaption class=\"caption wp-caption-text\">Creating a 20MB Test File in the Directory<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">We will use the traditional text editor called &#8220;vi&#8221; to open the file and close it as soon as it&#8217;s loaded. To know how long the entire operation lasted, we use the &#8220;time&#8221; command, like this:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">time vi testfile<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">And when we exit vi after &#8220;testfile&#8221; has displayed its contents, it gives us the duration of the entire operation like this:<\/span><\/p>\n<figure id=\"attachment_834\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 678px\"><img decoding=\"async\" class=\"size-full wp-image-834\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Open-and-Close-File-in-vi.jpg\" alt=\"Opening and Closing File Using vi\" width=\"668\" height=\"308\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Open-and-Close-File-in-vi.jpg 668w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Open-and-Close-File-in-vi-300x138.jpg 300w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><figcaption class=\"caption wp-caption-text\">Opening and Closing the File Using vi<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">So in this case, it takes us almost 6 seconds for a file that&#8217;s just 20 MB! That&#8217;s an absurd amount of time for a powerful processor. What happens when we increase the size to 40 MB?<\/span><\/p>\n<figure id=\"attachment_835\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 665px\"><img decoding=\"async\" class=\"size-full wp-image-835\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Execution-Time-Increases-Non-Linearly.jpg\" alt=\"Execution Time Increases Non-Linearly\" width=\"655\" height=\"396\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Execution-Time-Increases-Non-Linearly.jpg 655w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Execution-Time-Increases-Non-Linearly-300x181.jpg 300w\" sizes=\"(max-width: 655px) 100vw, 655px\" \/><figcaption class=\"caption wp-caption-text\">The Execution Time Increases Non-Linearly<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">It now takes us 23 seconds! So the time <i>increases non-linearly<\/i>. When the file is larger, it takes <em>exponentially longer<\/em> to open.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">The &#8220;cat&#8221; command is even worse:<\/span><\/p>\n<figure id=\"attachment_836\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 650px\"><img decoding=\"async\" class=\"size-full wp-image-836\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Cat-Command-Similar-Performance.jpg\" alt=\"Cat Command Has Similar Performance\" width=\"640\" height=\"260\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Cat-Command-Similar-Performance.jpg 640w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Cat-Command-Similar-Performance-300x122.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><figcaption class=\"caption wp-caption-text\">The Cat Command Offers Similar Performance<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">15 seconds just to open a 10MB file!<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Using &#8220;Less&#8221; is More Efficient<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">Luckily for us, we have a command called &#8220;less&#8221; which reads the contents of the file one block at a time, and thus spares us the problem of loading it all at once. The syntax is simple:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">less <i>[filename]<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Where <i>[filename]<\/i> is the name of the large file you want open. You can see in the screenshot below that it opens a huge file in less than a second:<\/span><\/p>\n<figure id=\"attachment_837\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 622px\"><img decoding=\"async\" class=\"size-full wp-image-837\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Less-Command-Instantaneous.jpg\" alt=\"Less Command Opens Files Instantly\" width=\"612\" height=\"253\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Less-Command-Instantaneous.jpg 612w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Less-Command-Instantaneous-300x124.jpg 300w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><figcaption class=\"caption wp-caption-text\">The Less Command Opens Files Almost Instantaneously<\/figcaption><\/figure>\n<p class=\"p2\"><span class=\"s1\">Most of that time is used by having to manually quit the program. So it&#8217;s pretty much instantaneous! We can navigate to the next &#8220;block&#8221; in the file by pressing &#8220;f&#8221; and we can go back by pressing &#8220;b&#8221;. We can also use &#8220;j&#8221; and &#8220;k&#8221;, or the arrow keys, to navigate between lines.<\/span><\/p>\n<p class=\"p2\"><span class=\"s1\">So the next time you see a file of hundreds of MB and need to view it, use &#8220;less&#8221; instead of &#8220;vi&#8221; or &#8220;cat&#8221;. Your system resources will thank you for it, and you&#8217;ll save time as well!<\/span><\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/outsourced-hosting-support.html\">Outsourced Server Support Services<\/a>, in which case you can simply ask our expert Linux admins to manage your large text files for you. Just sit back, relax, and let our admins take care of the issue for you. They are available 24&#215;7 to help you with your requests.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on managing your text files in Linux, please share it with your friends on the social networks by using the share shortcut buttons, or simply leave a comment in the comments section below. Thanks.<\/p><div id=\"linux-2892566905\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that &#8220;everything is a file&#8221;. Sure, there are databases and binary structures, but nothing like Windows&#8217; &#8220;Registry&#8221; exists. Even devices, partitions, and sockets are represented either by real or virtual files. Given all of this, some text [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":841,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[139,137,138],"class_list":["post-831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-efficiency","tag-files","tag-manage"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that &quot;everything is a file&quot;. Sure, there are\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that &quot;everything is a file&quot;. Sure, there are\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-13T16:06:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Efficiently Manage Large Text Files in Linux\",\"datePublished\":\"2019-03-13T16:06:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/\"},\"wordCount\":904,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/manage-text-files-linux.jpg\",\"keywords\":[\"efficiency\",\"files\",\"manage\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/\",\"name\":\"How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/manage-text-files-linux.jpg\",\"datePublished\":\"2019-03-13T16:06:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that \\\"everything is a file\\\". Sure, there are\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/manage-text-files-linux.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/manage-text-files-linux.jpg\",\"width\":750,\"height\":410,\"caption\":\"How to Efficiently Manage Text Files in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-efficiently-manage-large-text-files-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Efficiently Manage Large Text Files in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport","description":"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that \"everything is a file\". Sure, there are","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:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport","og_description":"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that \"everything is a file\". Sure, there are","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-03-13T16:06:19+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Efficiently Manage Large Text Files in Linux","datePublished":"2019-03-13T16:06:19+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/"},"wordCount":904,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg","keywords":["efficiency","files","manage"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/","name":"How to Efficiently Manage Large Text Files in Linux | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg","datePublished":"2019-03-13T16:06:19+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"&nbsp; Linux is an operating system of text files. Unlike Windows, the Linux philosophy and core concept is that \"everything is a file\". Sure, there are","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/manage-text-files-linux.jpg","width":750,"height":410,"caption":"How to Efficiently Manage Text Files in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-efficiently-manage-large-text-files-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Efficiently Manage Large Text Files in Linux"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=831"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/831\/revisions"}],"predecessor-version":[{"id":845,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/831\/revisions\/845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/841"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}