| Hard Link | Soft Link / symbolic Link |
| If the inode entries are the same and if the count is 2 then they are hard linked. | if you see filename --> linked_directory |
| la –lia | ls -a |
| ln <source> <target file> (without the option –s which stands for soft link). | ln -s <source> <target file> (with the option –s which stands for soft link). |
| It is essentially create identical copies, No matter which one you update, both of them will get updated | |
| both links must reside on the same filesystem, the source file must exist | that are not applicable to softlinks (source and target can be on seperate file systems, source does not have to exist, etc.) additional I/O necessary to complete file access, additional storage taken up by softlink file's data |
| A "soft" link does not increase the inode count for the referenced file, a "hard" link does. If the count = 1, it's a soft link. If the count is > 1, it's a hard link. |
Example of Viewing existing Hard link
ls –lia
1. Same iNode number : 245787
2. After permission column it lists 2
| oracle@test:/app/oracle/product/11.2.0.3/grid/network/admin $ ls -lia |
Example of viewing SoftLink
| oracle@test1:/app/grid/product/11.2.0.3/network/admin $ ls -lia |