Friday, January 1, 2021

Hard and Soft link

 

Symbolic Link :-  There are two types of Links

 Soft Link :                                                       

1. Size of link file is equal to no. of characters in the name of original file
2. Can be created across the Partition
3.Inode no. of source and link file is different
4.if original file is deleted, link is broken and data is lost
5.SHORTCUT FILE

[root@dev ~]# ln -s /aws/  aws.slink 

Hard link :

1. Size of both file is same
2 .Can't be created across the partition
3.Inode no. of both file is same
4.If original file is deleted then also link will contain data
5.BACKUP FILE

[root@dev ~]# ln  /aws/  aws.hlink  

No comments:

Post a Comment