what is the difference between hard link and soft link ?

Asked by ranjit.m

soft link:- in soft link is nothing but two different inode numbers in same block ,
if source deleted automatically destination also deleted.and
 ln -s source destination..,
and we can make files and folders as soft link..

hard link:-in hard link is nothing but same inode numbers with different blocks,
if we delete source we can retrive from destination..,,
ln source destination
and we can make hard link files only

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
neHru
Solved:
Last query:
Last reply:
Revision history for this message
Best neHru (leon-omfg) said :
#1

Yes, and what is your question about it? Hard is same file, soft is link to a file...

Revision history for this message
Albert Damen (albrt) said :
#2

I think especially the pictures in this link: http://linuxgazette.net/105/pitcher.html may explain the difference between a hard and soft link.

Revision history for this message
ranjit.m (ranjit-m) said :
#3

Thanks neHru, that solved my question.