[Ilugc] Re: One day one command (LN)

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Fri Aug 22 18:01:44 2008

--- On Fri, 22/8/08, indianathan n <indianathann@xxxxxxxxx> wrote:

$ ln A B
         This command makes mirror of file. You can edit
both of them. It
will automatically update in another one. to delete the
file you should
remove the both.


It is not mirroring, no physical copying is done. The entry about A and B in 
the directory structure will point to same file. The physical file remains just 
single with its link count in inode increased. This type of link is called hard 
link

$ ls -s A B

         This command creates only shortcut(link). Original
file only
available one to work.
It is not short cut, it is called symbolic link. Symbolic link uses filename 
itself instead of inode number to maintain relationship. You can use both A and 
B for work.

Raman.P


      Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Other related posts: