Results 1 to 3 of 3

Thread: Is there anyway to identify the link file in hardlink?

  1. #1

    Is there anyway to identify the link file in hardlink?

    Hello all,

    When we create a soft link, we can easily identify the link file
    ex:
    lrwxr-xr-x 1 govinds govinds 1 Jun 17 13:37 b -> a

    but if we create a hard link, how to identify the link file from the original file.

    in the following d is original e is link file. i could nt see any difference

    -rw-r--r-- 2 govinds staff 0 Jun 17 13:39 d
    -rw-r--r-- 2 govinds staff 0 Jun 17 13:39 e




    $ stat d
    234881026 7565195 -rw-r--r-- 2 govinds govinds 0 0 "Jun 17 13:39:14 2011" "Jun 17 13:39:14 2011" "Jun 17 13:39:20 2011" "Jun 17 13:39:14 2011" 4096 0 0 d

    $ stat e
    234881026 7565195 -rw-r--r-- 2 govinds govinds 0 0 "Jun 17 13:39:14 2011" "Jun 17 13:39:14 2011" "Jun 17 13:39:20 2011" "Jun 17 13:39:14 2011" 4096 0 0 e

  2. #2
    The files will share the same inode. Run "ls -il d e".

  3. #3
    There is no difference. They are two different names for the same file.

Similar Threads

  1. D-Link
    By Tri_X_Troll in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 01-22-2006, 07:00 AM
  2. Link Affiliation now available!
    By genesis in forum Announcements and Suggestions
    Replies: 4
    Last Post: 01-02-2005, 01:19 AM
  3. Second NIC (D-LINK 538TX)
    By alloy in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 10-05-2004, 07:28 PM
  4. The weakest link?
    By Compunuts in forum General Chat
    Replies: 6
    Last Post: 08-22-2004, 05:06 AM
  5. Fun Link
    By paradox in forum General Chat
    Replies: 2
    Last Post: 04-30-2004, 01:33 AM

Bookmarks

Posting Permissions

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