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

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).

主站蜘蛛池模板: 马公市| 普陀区| 临湘市| 西贡区| 太康县| 吴忠市| 长海县| 桑植县| 台中县| 桦南县| 永泰县| 卓尼县| 东辽县| 荔浦县| 资中县| 定安县| 溧阳市| 广平县| 广安市| 广丰县| 清镇市| 汨罗市| 澄江县| 白山市| 虎林市| 雅安市| 滦南县| 巴东县| 靖远县| 兴隆县| 绿春县| 聂拉木县| 庆元县| 抚松县| 奎屯市| 新疆| 东安县| 上饶市| 平湖市| 辉南县| 萨嘎县|