Query regarding hardlink and symbolic link.
hello ,
is there any way to make a hardlink/symlink to a target file which has no existence ? is it possible to make a symbolic link of a existing hardlink or vice versa ? we know that symbolic link can be made in different partition but is it possible to make hardlink into different partition ? pls explain the concept .... thanks in advance. |
Quote:
Quote:
Quote:
|
Quote:
Quote:
Do you mean link to a link? Yes Quote:
The concept?? A symbolic link is like a pointer--it redirects you to a real file. A hard link is like a mirror--the content is duplicated. |
Quote:
I misread OP as saying "directory" and answered "yes". Why would it not work in a different partition? |
Quote:
A hard link creates a copy of the i-node of the file. Hard link is not a link in the way you imagine it. When you create a hard link what you do is have a second i-node pointing to the same data. [i-node]-> [file data] <- [i-node] To have a hard link in a different partition is like having a file half of which is stored in a different partition. This is not feasible. |
http://www.granneman.com/techinfo/li...dhardlinks.htm
Quote:
Quote:
|
I´ve never had a reason to use hard links.
Is there an example? What about... data in a shared folder. user a has a hard link in his home to shared user b also has a hard link in his home to shared Is this like it? |
As I understand it, yes. What I don't know is if the two hard links can have different permissions. Then user A and user B can both be owners of the same file. That is the only reason I can see to have hard links.
|
All times are GMT -5. The time now is 01:08 AM. |