The inode in the Linux file system is mainly used to store the basic information of files and directories. When the system creates a file system, it will create a large number of inodes. The following small series will give you a detailed introduction to the role of inodes. Look.
a, inode what is?
To understand inodes, start with file storage.
The file is stored on the hard disk. The minimum storage unit of the hard disk is called “sector”. Each sector stores 512 bytes (equivalent to 0.5 KB).
When the operating system reads the hard disk, it does not read it one by one. This is too inefficient, but it reads multiple sectors at once, that is, reads one block at a time. ”(block). This "block" consisting of multiple sectors is the smallest unit of file access. The size of the block & rdquo;, the most common is 4KB, that is, a continuous block of eight sectors.
File data is stored in the "block", then obviously, we must also find a place to store the meta information of the file, such as the creator of the file, the date the file was created, the size of the file, etc. . This area for storing file meta information is called inode, and the Chinese translation is called "index node".
Second, the content of the inode
The inode contains the meta information of the file, specifically the following:
The code is as follows:
* The word of the file Number of sections
* User ID of the file owner
* Group ID of the file
* Read, write, and execute permissions of the file
* There are three timestamps: ctime refers to the time when the inode was last changed, mtime refers to the time when the file content was last changed, and atime refers to the time when the file was last opened.
* The number of links, that is, how many file names point to this inode
* The location of the file data block
You can use the stat command to view the inode information of a file: Br>
The code is as follows:
stat example.txt
In short, all file information except the file name exists in the inode. As for why there is no file name, the following will explain in detail.
Previous123Next page Total 3 pages
In Linux system, use Ctrl+Alt+Del shortcut combination to quickly restart the syste
If you dont embed a font when you create a PDF file, it may cause different styles
The Linux system additional permissions mentioned here refer to SET bit permissions
High-availability cluster can make the overall service of the cluster as available as possible, redu
Linux xhost command usage summary
How to sniff HTTP traffic under Linux
How to use and manage swap space in Linux
How to set up Kali Linux after installation?
Linux php-cgi accounted for 100% of the memory solution
How to generate reports using Linux using the Sosreport command
CentOS version information viewing tips
A brief introduction to the use of jenkins in Linux systems
Steps to turn off root remote login on AIX
How to solve the blue screen after upgrading the NVIDIA driver in Win8.1 system?
How to repair Win7 shortcut key Win+E combination key failure method
How to delete the boot menu after uninstalling Windows 7
How to solve the online neighbors in the Win7 64-bit Ultimate system can not open
Win10 9926 how to wake up Cortana Microsoft Xiaona to ask her questions
Win10 system blue screen prompt PAGE_FAULT_IN_NONPAGED_AREA how to fix?
VNC remote connection under Windows7 rhel6.1
How to use Win8 memory diagnostic tool