Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Others => Miscellaneous => Topic started by: vlinux1 on May 12, 2006, 04:55:09 PM

Title: About Linking
Post by: vlinux1 on May 12, 2006, 04:55:09 PM
Hello Group,

I want your help. I am totaly confused about linking please tell me in simple steps or with examples. why we are doing linking?
 # ln -s


Thanks in Adavance

Vijay
Title: About Linking
Post by: gauravbajaj on May 12, 2006, 06:39:28 PM
There are two types of links available
HARD LINKS
SOFT LINKS

HARDLINK
A "hard link" is the process of creating a new name for a file. Both names will point to the same physical file, and if you delete one name (using "rm" or similar), the file will still remain under the other name.
both have same i=node no's

HARD LINK  example :-

make file name s1
make a link for that file name it s2 by command

#ln s1 s2

u can check this by giving command
ls -i s1
ls -i s2

BOTH should have same i--nodes


SOFT LINK
When you create a "soft link" (or symbolic link), you just create a small file that contains the name of the file that it points to. means  if u take example for windows operating system its like a making a shortcut in WINDOWS

if you delete the original name of the file (ie. the name that the symlink points to), the file will be deleted and the symlink will be "dangling" (giving blinking error) , ie. it will point to a file that doesn't exist.

command

ln -s s1 s2
{ where -s option is used to create soft links }

WAIT  TO GET RESPONSE FROM OTHER GUYS ALSO

MAY BE THEY ARE MORE CLEAR IN THIS TOPIC  THEN ME :D

Gaurav
Title: About Linking
Post by: Ricky on May 13, 2006, 06:43:35 PM
Well, its pretty clear. Good job !
Title: About Linking
Post by: gauravbajaj on May 15, 2006, 04:22:23 AM
Thanks Ricky :D
Title: About Linking
Post by: vlinux1 on May 17, 2006, 05:14:17 PM
Hello Gaurav,

Thank you very i think our group is very good thant other linux groups.

because in our group response is good for any topic.

Thanks  Gaurav and Ricky.


Regards,

Vijay
Title: About Linking
Post by: aktiwari4u on June 28, 2006, 11:46:41 AM
Great Explained Gaurav bhi keep it up
Title: About Linking
Post by: ilias on June 29, 2006, 05:01:21 AM
Hi all

There is no pointing in congratulating the senior members, we should also follow there footsteps by answering what ever we know and which we have learnt form this forum to others.

Many users just use this forum for referencing to get answers and never answers any queries even if they know or encounters the same query which has been once posted by them.
Title: About Linking
Post by: Ricky on July 01, 2006, 06:49:53 AM
Well Ilias, your point is also noticable but if you get some appreciation for your work then it actually inspire you to perform better. So I think its good to appreciate if there is some noticable work.
Title: Re: About Linking
Post by: aktiwari4u on May 25, 2008, 10:19:21 AM
i feel that if some thing has been appriciated than it means that other may also use it as a reference and there is no point for any objection in that . this only shows that the answer is some what very appricatable.