Example: The system to find the file/var/log/messages process
The kernel knows the inode number, according to the inode can be found/corresponding disk block, the disk block has/below the directory and corresponding inode number, and then according to the Var inode number to find the corresponding disk block Var, which contains the log directory corresponding inode number, Then we find the disk block of log according to the inode number of log, then find the messages corresponding disk block according to the inode number of the message, that is to find the messages file
Hard Links
Access 2 paths of the same file with the same inode number and the same file size
Soft links
Example:/etc/test------>/usr/local/test
/disk block is not the directory and the corresponding inode number, but a pointer to/usr/local/test, and then the system to find/usr/local/test
Linux-the process by which the operating system looks for files and the difference between hard and soft links