Differences between hard link and soft link

What is link Unix: To give a pointer to the source file called as a link. In Unix/Linux there are two types of links 1. Soft link and 2. Hard link.

Soft Links Hard Links
The inode number for the source file and link file are different Source file and link file has same inode numbers
It can be created across the file system It can’t be created across file system
Editing of original file will be replicate in the link files Editing of original file will replicate in the link files
Size of soft link file equals to number of characters in original file path Size of hard link file is same as original file.
If source file is deleted, then link will not be accessible If the source file is deleted, then link file can be accessible
It is also be called as shorcut link It is also called back link
Syntax: $ln -S Syntax: $ln
CheapSexCams
Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Powered by k2schools
%d bloggers like this: