DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Diff between hard link and soft link

  1. #1
    Join Date
    Sep 2000
    Posts
    384
    I am trying to relink oracle with OMNIBACK media manager in Hp UX .

    For that I need to create a symbolic link to the omniback library.hear I was told to do a soft link and not a hard link ..

    How do I know a link is hard link or soft link ...

    Radhakrishnan.M

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    ln -s is a soft link. man ln for explanations.
    Jeff Hunter

  3. #3
    Join Date
    Sep 2000
    Posts
    47
    A "soft" link does not increase the inode count for the referenced file, a "hard" link does. To determine the inode count, execute an "ls -l" (long listing) on the either the link or the referenced file and check the inode count column (on HP-UX it's the first column after the permissions mask). If the count = 1, it's a soft link. If the count is > 1, it's a hard link.

    Tim

  4. #4
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Hard vs Soft links

    The way to find out is

    Hard link:
    If you do
    Code:
    ls -li source target
    If the inode entries are the same and if the count is 2 then they are hard linked.

    Soft linl:

    if you do
    Code:
    ls -a
    and if you see

    filename --> linked_directory

    Then its a symbolic link.

    Hope these would help you...

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  5. #5
    Join Date
    Sep 2000
    Posts
    384
    Thanks guys ...
    Radhakrishnan.M

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width