{"id":19109,"date":"2016-01-15T02:02:04","date_gmt":"2016-01-14T16:02:04","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=19109"},"modified":"2016-01-16T20:34:06","modified_gmt":"2016-01-16T10:34:06","slug":"linux-inode-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-inode-primer-tutorial\/","title":{"rendered":"Linux Inode Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/inode.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Linux Inode Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/inode.jpg\" title=\"Linux Inode Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Linux Inode Primer Tutorial<\/p><\/div>\n<p>When you learn Unix or Linux you are taught that a lot of things about how the operating system works are about files.<\/p>\n<p>And with Unix and Linux those files can often be (further) referenced via a number called an <a target=_blank title='Inode link' href='http:\/\/www.grymoire.com\/Unix\/Inodes.html'>inode<\/a> &#8230; to quote &#8230; <\/p>\n<blockquote><p>\n A Unix file is &#8220;stored&#8221; in two different parts of the disk &#8211; the data blocks and the inodes. (I won&#8217;t get into superblocks and other esoteric information.) The data blocks contain the &#8220;contents&#8221; of the file. The information about the file is stored elsewhere &#8211; in the inode.\n<\/p><\/blockquote>\n<p> &#8230; and this <i>inode<\/i> is examinable with the <i>stat<\/i> command to show &#8230; (and to quote again) &#8230;<\/p>\n<ul>\n<li>Mode\/permission (protection)<\/li>\n<li>Owner ID<\/li>\n<li>Group ID<\/li>\n<li>Size of file<\/li>\n<li>Number of hard links to the file<\/li>\n<li>Time last accessed<\/li>\n<li>Time last modified<\/li>\n<li>Time inode last modified<\/li>\n<\/ul>\n<p>Unix and linux operating systems will have a quota of <i>inode<\/i> numbers allowed, information for which can be found with a command like &#8220;df -ih&#8221; relevant to <i>inode<\/i> numbers used relative to quotas for each disk, which we talked about a bit at <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/client-pre-emptive-iframe-crontab-curl-rotated-report-tutorial\/' title='Client Pre-Emptive Iframe Crontab Curl Rotated Report Tutorial'>Client Pre-Emptive Iframe Crontab Curl Rotated Report Tutorial<\/a>.<\/p>\n<p>We show a few <i>inode<\/i> related Linux commands <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/inode.jpg\" title='Click picture'>here<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d19109' onclick='var dv=document.getElementById(\"d19109\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d19109' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you learn Unix or Linux you are taught that a lot of things about how the operating system works are about files. And with Unix and Linux those files can often be (further) referenced via a number called an &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-inode-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[418,1752,707,1319,1339],"class_list":["post-19109","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-file","tag-inode","tag-linux","tag-tutorial","tag-unix"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/19109"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=19109"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/19109\/revisions"}],"predecessor-version":[{"id":19491,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/19109\/revisions\/19491"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=19109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=19109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=19109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}