Thursday 2 January 2014

Difference Between Soft Link & Hard Link in Linux

Soft Link :- soft links are the shortcut to the original file .If u delete the original file the shortcuts will fail.Soft links have different inode number than source file

Command to create  soft link:-  ln -s  /root/file1  /root/Desktop/file2 


Hard Link :-  Hard Links are mirror copy of  source file .If we changes in file 1 it appears in file 2. Hard links have same inode number as of source file

Command to create  soft link:-  ln   /root/file1  /root/Desktop/file2 

No comments:

Post a Comment