{"id":406,"date":"2011-01-31T05:55:19","date_gmt":"2011-01-31T11:55:19","guid":{"rendered":"http:\/\/blog.supportpro.com\/2011\/01\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/"},"modified":"2025-04-28T05:10:39","modified_gmt":"2025-04-28T11:10:39","slug":"disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/","title":{"rendered":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents"},"content":{"rendered":"<p>Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to <a href=\"https:\/\/www.supportpro.com\/blog\/forcefully-refreshing-disk-space-usage-directly-from-cpanel\/\">clear the log files<\/a> and thereby you can acquire quite a large amount of usable diskspace.<br \/>\nCheck the following:<br \/>\n1. Check the total disk usage:<br \/>\n[root@testserver \/]# df -h<br \/>\n2. Check the size of a each folder:<br \/>\n[root@testserver \/]# du -sch * or du -sch \/foldername command<\/p>\n<p><!--more--><\/p>\n<p>3. Suppose if error logs is taking a lot of space, you can always try to clear it. You can keep x number of latest entries for your reference and can null the old entries.<br \/>\nTo achieve this, perform the following:<br \/>\n[root@testserver \/]#\u00a0 vi error_log_new \/\/ create a new file to save the latest entries<br \/>\n[root@testserver \/]#\u00a0 tail -1000 error_log &gt;\u00a0 error_log_new \/\/ this copies latest 1000 entries from error_log to error_log_new<br \/>\n[root@testserver \/]#\u00a0 &gt; error_log \/\/ clear the contents<br \/>\n[root@testserver \/]#\u00a0 mv error_log_new\u00a0 error_log \/\/ move the contents of the latest error_log to the cleared file<br \/>\noverwrite?: yes<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","category-server-tweaking"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"SupportPRO Admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Server Management Tips | SupportPRO Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips\" \/>\n\t\t<meta property=\"og:description\" content=\"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-01-31T11:55:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-04-28T11:10:39+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#article\",\"name\":\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips\",\"headline\":\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents\",\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/no-cache.hubspot.com\\\/cta\\\/default\\\/2725694\\\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#articleImage\"},\"datePublished\":\"2011-01-31T05:55:19-06:00\",\"dateModified\":\"2025-04-28T05:10:39-06:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#webpage\"},\"articleSection\":\"Miscellaneous, Server Tweaking\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/#listItem\",\"name\":\"Server\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/#listItem\",\"position\":2,\"name\":\"Server\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/server-tweaking\\\/#listItem\",\"name\":\"Server Tweaking\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/server-tweaking\\\/#listItem\",\"position\":3,\"name\":\"Server Tweaking\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/server-tweaking\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#listItem\",\"name\":\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/#listItem\",\"name\":\"Server\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#listItem\",\"position\":4,\"name\":\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/server\\\/server-tweaking\\\/#listItem\",\"name\":\"Server Tweaking\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\",\"name\":\"SupportPRO\",\"description\":\"SupportPRO Blog\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"telephone\":\"+18476076123\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/\",\"name\":\"SupportPRO Admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SupportPRO Admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#webpage\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/\",\"name\":\"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips\",\"description\":\"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \\\/]# df -h 2. Check the size of a each folder: [root@testserver\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"datePublished\":\"2011-01-31T05:55:19-06:00\",\"dateModified\":\"2025-04-28T05:10:39-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"name\":\"Server Management Tips\",\"description\":\"SupportPRO Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips<\/title>\n\n","aioseo_head_json":{"title":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips","description":"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver","canonical_url":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#article","name":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips","headline":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents","author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#articleImage"},"datePublished":"2011-01-31T05:55:19-06:00","dateModified":"2025-04-28T05:10:39-06:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#webpage"},"isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#webpage"},"articleSection":"Miscellaneous, Server Tweaking"},{"@type":"BreadcrumbList","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.supportpro.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/#listItem","name":"Server"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/#listItem","position":2,"name":"Server","item":"https:\/\/www.supportpro.com\/blog\/category\/server\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/#listItem","name":"Server Tweaking"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/#listItem","position":3,"name":"Server Tweaking","item":"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#listItem","name":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/#listItem","name":"Server"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#listItem","position":4,"name":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents","previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/#listItem","name":"Server Tweaking"}}]},{"@type":"Organization","@id":"https:\/\/www.supportpro.com\/blog\/#organization","name":"SupportPRO","description":"SupportPRO Blog","url":"https:\/\/www.supportpro.com\/blog\/","telephone":"+18476076123"},{"@type":"Person","@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author","url":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/","name":"SupportPRO Admin","image":{"@type":"ImageObject","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g","width":96,"height":96,"caption":"SupportPRO Admin"}},{"@type":"WebPage","@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#webpage","url":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/","name":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips","description":"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/#breadcrumblist"},"author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"creator":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"datePublished":"2011-01-31T05:55:19-06:00","dateModified":"2025-04-28T05:10:39-06:00"},{"@type":"WebSite","@id":"https:\/\/www.supportpro.com\/blog\/#website","url":"https:\/\/www.supportpro.com\/blog\/","name":"Server Management Tips","description":"SupportPRO Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Server Management Tips | SupportPRO Blog","og:type":"article","og:title":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips","og:description":"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver","og:url":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/","article:published_time":"2011-01-31T11:55:19+00:00","article:modified_time":"2025-04-28T11:10:39+00:00","twitter:card":"summary","twitter:title":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents | Server Management Tips","twitter:description":"Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver \/]# df -h 2. Check the size of a each folder: [root@testserver"},"aioseo_meta_data":{"post_id":"406","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-06-17 12:37:08","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2021-12-10 16:11:22","updated":"2026-06-30 23:15:48"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\/category\/server\/\" title=\"Server\">Server<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/\" title=\"Server Tweaking\">Server Tweaking<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tDisk usage 100% ? Retain latest entries of a file and delete the rest of the contents\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.supportpro.com\/blog"},{"label":"Server","link":"https:\/\/www.supportpro.com\/blog\/category\/server\/"},{"label":"Server Tweaking","link":"https:\/\/www.supportpro.com\/blog\/category\/server\/server-tweaking\/"},{"label":"Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents","link":"https:\/\/www.supportpro.com\/blog\/disk-usage-100-retain-latest-x-number-of-entries-of-a-file-and-delete-the-rest-of-the-contents\/"}],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":3,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":14571,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions\/14571"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}