Soft and Hard Link

Soft and Hard Link

Soft link :
1. having diffent inode number for original and link file
2. if original file delete, soft link will not work.
3. one copy on hard disk
4. ln -s target Link_name

Hard Link :
1. same inode number
2. Link works evenif original file delete
3. two copies on hard disk, so get more space on HDD
4. ln target Link_name

==================================================================
1. create softlink
#ln -s file.txt softLink

2. create hardlink
#ln file.txt hardlink

3. Delete link
#unlink linkName

==================================================================

Posted in commands

Leave a Reply