官术网_书友最值得收藏!

  • Learn Linux Quickly
  • Ahmed AlKabary
  • 186字
  • 2021-06-11 18:43:52

File inodes

When you go to a grocery store, you will find that each product has a set of attributes like:

  • Product type: Chocolate
  • Product price: $2.50
  • Product supplier: Kit Kat
  • Amount left: 199

These attributes can be displayed on any product in the grocery store by scanning the product's barcode. And each barcode is unique, of course. Well, you can apply this analogy to Linux. Every file on Linux has a set of attributes like:

  • File type
  • File size
  • File owner
  • File permissions
  • Number of hard links
  • File timestamp

These attributes are stored in a data structure called the inode (index node), and each inode is identified by a number (inode number). So you can think of inode numbers like the barcodes in a grocery store. Every file in Linux has an inode number and every inode number points to a file data structure, that is, the inode. And here is a formal definition of an inode:

What is an Inode?

An inode is simply a file data structure that stores file information (attributes), and every inode is uniquely identified by a number (inode number).

主站蜘蛛池模板: 华亭县| 盈江县| 许昌市| 汪清县| 色达县| 色达县| 永平县| 桐柏县| 绥阳县| 昆明市| 昆明市| 卫辉市| 永修县| 化德县| 临猗县| 台东市| 格尔木市| 丹凤县| 龙海市| 乌兰浩特市| 乾安县| 曲水县| 皋兰县| 平舆县| 泰宁县| 科技| 湛江市| 扬中市| 五家渠市| 威信县| 绍兴县| 吉木萨尔县| 冕宁县| 佛坪县| 宁夏| 浦县| 大英县| 平舆县| 都匀市| 青海省| 冀州市|