LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Symbolic links Vs Hard links (http://www.linuxquestions.org/questions/linux-general-1/symbolic-links-vs-hard-links-668248/)

sulekha 09-07-2008 11:58 PM

Symbolic links Vs Hard links
 
Hi all,

AFAIK the following are the differences between symbolic links and
hard links
Is there any other point which I have missed ?

symbolic link

when you try to open a symbolic link which points to a file or change
to one that points to a directory,the command you run acts on the file
or directory that is the target of that link.the target has its own
permissions and ownership that you cannot see from the symbolic link.

The symbolic link can exist on a different disk partition than the
target.

Hard link

It can only be used on files(not directories) and is basically a way
of giving multiple names to the same physical file.

hard links that point to that single physical file must be on the same
partition as the orginal target file.

The files are hard links if they have the same inode number.

billymayday 09-08-2008 12:28 AM

This article I happened to read yesterday has a pretty goo description

http://lwn.net/Articles/294667/

muasif80 10-02-2008 07:03 AM

Hi,

You can see the following link for a discussion of symbolic vs hard link. It also has some useful urls for the same subject. Thanks

http://linux-certification.blogspot....-symbolic.html


All times are GMT -5. The time now is 02:59 AM.