March 28, 2024, 10:37:30 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: About Linking  (Read 6056 times)

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
About Linking
« 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
About Linking
« Reply #1 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
About Linking
« Reply #2 on: May 13, 2006, 06:43:35 PM »
Well, its pretty clear. Good job !

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
About Linking
« Reply #3 on: May 15, 2006, 04:22:23 AM »
Thanks Ricky :D

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
About Linking
« Reply #4 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

Offline aktiwari4u

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 161
    • http://aktiwari4u.tk/
About Linking
« Reply #5 on: June 28, 2006, 11:46:41 AM »
Great Explained Gaurav bhi keep it up

Offline ilias

  • Linux Learner
  • ***
  • Posts: 116
About Linking
« Reply #6 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
About Linking
« Reply #7 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.

Offline aktiwari4u

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 161
    • http://aktiwari4u.tk/
Re: About Linking
« Reply #8 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.