{"id":593,"date":"2019-06-09T01:11:49","date_gmt":"2019-06-09T01:11:49","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=593"},"modified":"2019-06-09T01:11:49","modified_gmt":"2019-06-09T01:11:49","slug":"what-is-inode-number-in-linux","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/","title":{"rendered":"What is inode number in Linux?"},"content":{"rendered":"\n<p>An inode is an entry in inode table, containing information ( the metadata ) about a regular file and directory. An inode is a data structure on a traditional Unix-style file system such as ext3 or ext4.<\/p>\n\n\n\n<p>Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type. On many types of file system implementations, the maximum number of inodes is fixed at file system creation, limiting the maximum number of files the file system can hold. A typical allocation heuristic for inodes in a file system is one percent of total size.<\/p>\n\n\n\n<p>Inode consists of following attributes:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>File types ( executable, block special etc )<\/li><li>Permissions ( read, write etc )<\/li><li>UID ( Owner )<\/li><li>GID ( Group )<\/li><li>FileSize<\/li><li>Time stamps including last access, last modification and last inode number change.<\/li><li>File deletion time<\/li><li>Number of links ( soft\/hard )<\/li><li>Location of ile on harddisk.<\/li><li>Some other metadata about file.<\/li><\/ul>\n\n\n\n<p>A file&#8217;s inode number can be found using the\u00a0<code>ls -il<\/code> command. The\u00a0<code>ls -il<\/code> command prints the i-node number in the first column of the report. <\/p>\n\n\n\n<p># ls -il testfile.txt<br \/> <strong>24686 <\/strong>-rw-r&#8211;r&#8211; 1 root root 0 Jun  9 19:21 testfile.txt<\/p>\n\n\n\n<p><strong>Copy file:<\/strong>\u00a0cp allocates a free inode number and placing a new entry in inode table. <\/p>\n\n\n\n<p><strong>Move or Rename a file:<\/strong>\u00a0if destination is same filesystem as the source, Has no impact on inode number, it only changes the time stamps in inode table. <\/p>\n\n\n\n<p><strong>Delete a file:<\/strong>&nbsp;Deleting a file in Linux decrements the link count and freeing the inode number to be reused.\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An inode is an entry in inode table, containing information ( the metadata ) about a regular file and directory. An inode is a data structure on a traditional Unix-style file system such as ext3 or ext4. Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[160,112],"class_list":["post-593","post","type-post","status-publish","format-standard","hentry","category-linux","tag-inodes","tag-linux"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is inode number in Linux? | 24x7serversupport Blog<\/title>\n<meta name=\"description\" content=\"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.\" \/>\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.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is inode number in Linux? | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-09T01:11:49+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/\",\"name\":\"What is inode number in Linux? | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-06-09T01:11:49+00:00\",\"dateModified\":\"2019-06-09T01:11:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"description\":\"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is inode number in Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is inode number in Linux? | 24x7serversupport Blog","description":"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.","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.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"What is inode number in Linux? | 24x7serversupport Blog","og_description":"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.","og_url":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-06-09T01:11:49+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/","url":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/","name":"What is inode number in Linux? | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-06-09T01:11:49+00:00","dateModified":"2019-06-09T01:11:49+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"description":"Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.","breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/what-is-inode-number-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What is inode number in Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=593"}],"version-history":[{"count":0,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/593\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}