What do mean by Inodes (index node) ?
It is a record stored in the inode table, containing the information about the files and directories.
An inode is denoted by the phrase “file serial number”. It is just like the actual address of the file. It is a unique identifier.
There are 3 distinct areas in Linux on which our hard drives depend.
|a) Super block||b) Inode table||c) Data block|
Soft link & Hard link
Soft link are similar to MS windows shortcut.
- One file can have many shortcuts pointing to it.
- Directory soft link
** dir007 is a dir. and dir is soft link.
File soft link
** file1= file and f1 is a shortcut link ** 1 denotes the only one link
If we remove the original file the soft link will automatically be deleted.
Hard Link are just different names for the same file
One file can have many different names or hard links.
The files have the same inode no.
We cannot create hard links for the directories.
If we remove the file the hard link will not be removed.
Conclusion: Finally we will learn what is inodes, three distinct areas on which hard drive depends and what is soft & hard link.