{"id":6383,"date":"2019-08-24T07:44:31","date_gmt":"2019-08-24T07:44:31","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=6383"},"modified":"2019-08-24T07:44:31","modified_gmt":"2019-08-24T07:44:31","slug":"a-complete-guide-to-inode-counting-files-in-linux-directory","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/","title":{"rendered":"A Complete Guide to Inode &#8211; Counting Files In Linux Directory"},"content":{"rendered":"<p>This article guides you to understand what an inode count is, how you can determine it for your account, and how you can reduce it whenever is necessary.<\/p>\n<h2># Inode Count<\/h2>\n<p>An inode is simply an internal data structure that is used by Linux to store information about a filesystem object. The inode count is equal to the total number of files and directories present in a user account or on a disk. Each file or directory will add 1 to the inode count.<\/p>\n<p>Inode has limits in place for shared hosting accounts to maintain the reliability and performance of users accounts. If the maximum limit of inode count for an account is reached, then you need to decrease the count by removing some files and directories.<\/p>\n<h2># Steps to determine the Inode count<\/h2>\n<p>Your hosting package type determines the method you should use to determine the inode count like :<\/p>\n<p>1) If you have shared hosting or reseller hosting package, then you can use cPanel or the command line to determine the current inode usage for your account.<\/p>\n<p>2) For all the other types of hosting packages (that include managed VPS, all unmanaged packages and managed Flex Dedicated server), you must have to use the command line to determine the current inode usage.<\/p>\n<h3># Method 1: Using cPanel<\/h3>\n<p>Perform the following steps to determine the current inode count using cPanel :<\/p>\n<p>1) Log in to cPanel<\/p>\n<p>2) Go to Stats column present on the cPanel home screen, and locate the File Usage row. The first number represents the number of inodes your account is using, whereas the second number represents the maximum number of inodes that are allowed for your account. For example, the following image represents that an account is using 96,769 inodes and the maximum 300,000 inodes are allowed.<\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6384 size-full\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\" alt=\"Inode count\" width=\"226\" height=\"406\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png 226w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min-167x300.png 167w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/a><\/p>\n<h3># Method 2: Using the command line<\/h3>\n<p>Perform the following steps to determine the current inode count for directories in your account using the command line :<\/p>\n<p>1) Using SSH, log into your account.<\/p>\n<p>2) Type the following command to ensure that you are in your home directory :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true\">cd ~<\/pre>\n<p>3) Now, type the following command to determine the total inode count for your account :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">find . | wc -l<\/pre>\n<p>4) To determine a breakdown of inode usage for all directories located in the current directory, type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">find . -printf \"%h\\n\" | cut -d\/ -f-2 | sort | uniq -c | sort -rn<\/pre>\n<h3># Reduce the Inode count<\/h3>\n<p>Incase, the inode count for your account is too high then you should try to determine the cause as soon as possible so that you can bring it back down to an acceptable level. Some of the common causes of high inode usage are :<\/p>\n<p><strong>1) Cron jobs or other automated processes:<\/strong> Automated processes like cron jobs are able to create a large number of files very quickly. In such a case, either modify or disable the cron job, or you can delete the unwanted files.<\/p>\n<p><strong>2) E-mail messages:<\/strong> Old messages in the Trash and Sent folders of user&#8217;s mailboxes often accumulate. You can also download these messages to your local computer (in-case you want to save them) and then delete them on the server.<\/p>\n<p><strong>Also Read :<\/strong><\/p>\n<p><strong>1) <a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-authenticate-your-emails-via-cpanel\/\">Steps to Authenticate Your Emails via cPanel<\/a><\/strong><\/p>\n<p><strong>2)\u00a0<a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-use-ip-address-blocker-in-cpanel\/\">Learn to use IP Address Blocker in cPanel<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article guides you to understand what an inode count is, how you can determine it for your account, and how you can reduce it whenever is necessary. # Inode Count An inode is simply an internal data structure that is used by Linux to store information about a filesystem object. The inode count is [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[960,961],"class_list":["post-6383","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","tag-inode-count","tag-linux-directory"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"The article covers introduction of Inode count and how you can count files in Linux Directory.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"The article covers introduction of Inode count and how you can count files in Linux Directory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-24T07:44:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/\",\"name\":\"A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\",\"datePublished\":\"2019-08-24T07:44:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"The article covers introduction of Inode count and how you can count files in Linux Directory.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A Complete Guide to Inode &#8211; Counting Files In Linux Directory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cb2cf6ae11d7625ef6417ef8e84ba25?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cb2cf6ae11d7625ef6417ef8e84ba25?s=96&d=blank&r=g\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb","description":"The article covers introduction of Inode count and how you can count files in Linux Directory.","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:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/","og_locale":"en_GB","og_type":"article","og_title":"A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb","og_description":"The article covers introduction of Inode count and how you can count files in Linux Directory.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-08-24T07:44:31+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png","type":"","width":"","height":""}],"author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/","name":"A Complete Guide to Inode - Counting Files In Linux Directory - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png","datePublished":"2019-08-24T07:44:31+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"The article covers introduction of Inode count and how you can count files in Linux Directory.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/08\/inode-count-min.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/a-complete-guide-to-inode-counting-files-in-linux-directory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"A Complete Guide to Inode &#8211; Counting Files In Linux Directory"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cb2cf6ae11d7625ef6417ef8e84ba25?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cb2cf6ae11d7625ef6417ef8e84ba25?s=96&d=blank&r=g","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/sonam\/"}]}},"views":883,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=6383"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6383\/revisions"}],"predecessor-version":[{"id":6385,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6383\/revisions\/6385"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=6383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=6383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=6383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}