Difference between revisions of "Inode"
Jump to navigation
Jump to search
(10 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
[[wikipedia:inode]] | [[wikipedia:inode]] | ||
Line 5: | Line 4: | ||
[[filename]] to inode lookup | [[filename]] to inode lookup | ||
− | |||
− | Device ID (this identifies the device containing the file; that is, the scope of uniqueness of the serial number). | + | Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type. |
− | File serial numbers. | + | |
− | The file mode which determines the file type and how the file's owner, its group, and others can access the file. | + | |
− | A link count telling how many hard links point to the inode. | + | |
− | The User ID of the file's owner. | + | Within a POSIX system, a [[file]] has the following attributes[10] which may be retrieved by the <code>[[stat]]</code> system call: |
− | The Group ID of the file. | + | |
− | The device ID of the file if it is a device file. | + | * Device ID (this identifies the device containing the file; that is, the scope of uniqueness of the serial number). |
− | The size of the file in bytes. | + | * File serial numbers. (Inode) |
− | Timestamps telling when the inode itself was last modified (ctime, inode change time), the file content last modified (mtime, modification time), and last accessed (atime, access time). | + | * The file mode which determines the file type and how the file's owner, its group, and others can access the file. |
− | The preferred I/O block size. | + | * A link count telling how many hard links point to the inode. |
− | The number of blocks allocated to this file. | + | * The User ID of the file's owner. |
+ | * The Group ID of the file. | ||
+ | * The device ID of the file if it is a device file. | ||
+ | * The size of the file in bytes. | ||
+ | * Timestamps telling when the inode itself was last modified (ctime, inode change time), the file content last modified (mtime, modification time), and last accessed (atime, access time). | ||
+ | * The preferred I/O block size. | ||
+ | * The number of blocks allocated to this file. | ||
Line 27: | Line 31: | ||
* [[File descriptor]] | * [[File descriptor]] | ||
* <code>[[stat]]</code> | * <code>[[stat]]</code> | ||
− | * [[inotify]] | + | * <code>[[inotify]]</code> |
+ | * <code>[[noatime]]</code> [[mount option]] | ||
+ | * <code>[[inode_readahead_blks]]</code> [[mount option]] | ||
+ | * [[Drop caches]] | ||
== See also == | == See also == |
Latest revision as of 10:39, 16 March 2023
filename to inode lookup
Inodes store information about files and directories (folders), such as file ownership, access mode (read, write, execute permissions), and file type.
Within a POSIX system, a file has the following attributes[10] which may be retrieved by the stat
system call:
- Device ID (this identifies the device containing the file; that is, the scope of uniqueness of the serial number).
- File serial numbers. (Inode)
- The file mode which determines the file type and how the file's owner, its group, and others can access the file.
- A link count telling how many hard links point to the inode.
- The User ID of the file's owner.
- The Group ID of the file.
- The device ID of the file if it is a device file.
- The size of the file in bytes.
- Timestamps telling when the inode itself was last modified (ctime, inode change time), the file content last modified (mtime, modification time), and last accessed (atime, access time).
- The preferred I/O block size.
- The number of blocks allocated to this file.
Related terms[edit]
sar -F
df -i
ordf --inodes
ls -i
- File descriptor
stat
inotify
noatime
mount optioninode_readahead_blks
mount option- Drop caches
See also[edit]
Advertising: