理解inode in Linux

  • Overview

    The inode (index node) is a data structure in a Unix-style file system that describes a file-system object such as a file or a directory.

    Each inode stores the attributes and disk block locations of the object’s data.

    Each file has an inode containing metadata about the file.

  • stat , statx

    An application can retrieve this metadata using stat, which returns a stat structure, or statx which returns a statx structure.

    $ stat fileName
    
  • References

  1. 阮一峰的网络日志: 理解inode
  2. inode(7) - Linux manual page
  3. The Linux Information Project

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/115023605