1.

Explain the major differences between Hard Link and Soft Link?

Answer»
Hard link
Soft link
Hard link associates two (or more) filenames with an INODE.
Soft link is a special file type which points to ANOTHER file and the contents of this special file is the name of the file that it points to.
Hard links all share the same disk DATA blocks while functioning as independent directory entries.
Soft links are CREATED by the - ln -s command.
Hard links may not span disk partitions since inode numbers are only unique within a given device.
Once a file which is pointed to by a symbolic link is deleted, the link still points to it, leaving a hanging link
Command to create a hard link to ‘knowledgehut’ is:
$ ln knowledgehut hlink
Command to create a symbolic link to ‘knowledgehut’ :
$ ln -s  knowledgehut slink




Discussion

No Comment Found