{"id":966,"date":"2019-02-17T07:04:45","date_gmt":"2019-02-17T07:04:45","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=966"},"modified":"2019-03-21T04:12:30","modified_gmt":"2019-03-21T04:12:30","slug":"examine-inode-usage-for-individual-directory","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/examine-inode-usage-for-individual-directory\/","title":{"rendered":"Examine Inode usage for individual directory"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">What is Inode?<\/h4>\n\n\n\n<p>How to find the INODE usage on Linux\u201d. You know, in Unix\/Linux everything is considered as a file. An Inode is a data structure that stores various information about a file. This includes<\/p>\n\n\n\n<ul><li>File type (executable, block special etc)<\/li><li>Ownership<\/li><li>Group Owner<\/li><li>Permission<\/li><li>File Size<\/li><li>File access, change and modification timestamp<\/li><li>File deletion timestamp<\/li><li>Number of links (soft\/hard)<\/li><li>Access Control List (ACLs)<\/li><\/ul>\n\n\n\n<p>First of all, let me briefly explain about Inode. Index Node (inode) is a basic concept in Linux\/Unix. Index node\/number (inode) is a data structure which contain the information about a file in your server\/hosting account.<\/p>\n\n\n\n<p>Inode save the information such as user and group ownerships, access mode (read, write, execute permissions) and file type.<\/p>\n\n\n\n<p>Number of inodes indicates the number of files and folders in your account. Every file like a webpage, image file, an email, cache file etc will count as 1 inode.<\/p>\n\n\n\n<p>In a WHM server, you can view the inode usage of your account from left side of your cPanel which is denoted by the term \u201cFile Usage\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Inode usage&nbsp;Exceeded<\/strong><\/h2>\n\n\n\n<p>If your account has reached\/exceeded the Inode usage and you\u2019re not sure about the reason for this. Don\u2019t worry. Here\u2019s the solution for this! If the account has reached the maximum inodes allocated for your account then it\u2019ll affect your account, website and email performance.<\/p>\n\n\n\n<p>You won\u2019t be able to send\/receive new emails, you won\u2019t be able to upload a new file to your account. Hence it\u2019ll affect the total performance of your account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>To&nbsp;know&nbsp;which&nbsp;is&nbsp;consuming&nbsp;the&nbsp;inodes<\/strong><\/h2>\n\n\n\n<p>\n\nNumber of Inodes indicates the number of files and folders in your account. Every Shared Hosting provider will have some INODE limits set on their server\u2019s and hence it\u2019s important to check the inode usage on your account regularly. This is because you won\u2019t be able to add new files once you have reached the Inode limit allocated to your account.\n\n<\/p>\n\n\n\n<p> If you have SSH access to your account the following commands will help you to understand the inode usage in your hosting account. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong># find . | wc -l<\/strong><\/pre>\n\n\n\n<p> This command will give you the total inode count of your account. To get the detailed inode usage that is which files\/folders are consuming more inode you can use the following command. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong># echo \"Detailed Inode usage for: $(pwd)\" ; for d in `find -maxdepth 1 -type d |cut -d\\\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf \"$c\\t\\t- $d\\n\" ; done ; printf \"Total: \\t\\t$(find $(pwd) | wc -l)\\n\"<\/strong><\/pre>\n\n\n\n<p>This will give the Inode usage of your current working <strong>DIRECTORY<\/strong>. If you need to find the Inode usage of your entire hosting account, execute this command in the location \/home\/<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"126\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2019\/03\/Capture-6-1024x126.png\" alt=\"\" class=\"wp-image-967\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2019\/03\/Capture-6-1024x126.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2019\/03\/Capture-6-300x37.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2019\/03\/Capture-6-768x94.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2019\/03\/Capture-6.png 1399w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Reduce Inode usage<\/strong><\/h2>\n\n\n\n<p> Using FileManager you can remove unnecessary files\/folders from your account.If you have the backups stored in your root directory, that is \/home\/user; you can download it to your local machine using <a href=\"http:\/\/orissawebhosting.in\/blog\/how-to-upload-files-with-filezilla\/\">FTP<\/a> or FileManager. <\/p>\n\n\n\n<p>\n\nIf there\u2019re large amount of cache files, you can use the purge functionality to clear the cache folders. This can be done via administrator panel.\n\n<\/p>\n\n\n\n<p>Emails will also add inode to your account. If you\u2019re storing all emails in the server <a href=\"http:\/\/orissawebhosting.in\/blog\/how-to-create-email-account-in-cpanel-how-to-login-webmail\/\">WEBMAIL<\/a> which you think as important emails you can archive emails like emails which are older than 6 months and you can download it your local machine.<\/p>\n\n\n\n<p>If you have enabled Default Address (catch all) for your account, you should regularly check the mailbox and clear all the unwanted emails. You need to delete all the unusing email accounts. Also you should check your email accounts and need to delete spam emails.<\/p>\n\n\n\n<p>These are ways to find exact inodes value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Inode? How to find the INODE usage on Linux\u201d. You know, in Unix\/Linux everything is considered as a file. An Inode is a data structure that stores various information about a file. This includes File type (executable, block special etc) Ownership Group Owner Permission File Size File access, change and modification timestamp File deletion timestamp Number of links (soft\/hard) Access Control List (ACLs) First of all, let me briefly explain about Inode. Index Node (inode) is a basic concept in Linux\/Unix. Index node\/number (inode) is a data structure&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/966"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":6,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/966\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/966\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}