1833644 Members
4797 Online
110062 Solutions
New Discussion

symbolic link

 
SOLVED
Go to solution
Amit Manna_6
Regular Advisor

symbolic link

Hi,

Is symbolic link same as hard link or soft link.

please anybody help ASAP
5 REPLIES 5
Eric Antunes
Honored Contributor

Re: symbolic link

I think it is the same as soft link. Do "man ln" for more information how to create links...
Each and every day is a good day to learn.
Suresh Patoria
Super Advisor

Re: symbolic link

Hi,

There Are two type of link

1)Hard link

It will create hard link same inode no.

#ln <> <>

Soft link
2)It will create soft link different inode no.

#ln -s <> <>

Thanx
Naveej.K.A
Honored Contributor
Solution

Re: symbolic link

hi amit,

some more differences.....

soft link can be created across the filesystem while a hard link can't be.

softlink can be created for directories, but hard link can't be.

with best wishes
Naveej
practice makes a man perfect!!!
Victor Fridyev
Honored Contributor

Re: symbolic link

Hi,

Soft link and symbolic link is the same thing.
The difference between hard and soft link, except that soft link can point to a file in another file system, is that hard link is a real file. So if you have a file and its hard link and delete the file, the hard link exists. Soft link in such a case points to non existing file.

Entities are not to be multiplied beyond necessity - RTFM
Bill Hassell
Honored Contributor

Re: symbolic link

A symlink, soft link and symbolic link are all the same. They are often used to provide documentation about one name referring to another (use the ls -l or ll command). A hard link is simply an alternate name for the same file. It is created by putting an entry into the directory with the same inode as a another file. A hard link must be in the same filesystem because it is just another name for a specific inode, whereas a symbolic link is a path. The full path is always recommended for a symbolic link although it is not required. A symbolic link can point to a file, a directory or under program control, any string can be stored as the link. Netscape does this to track the IP address of the current machine.


Bill Hassell, sysadmin