Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Is there anyway to identify the link file in hardlink?
Results 1 to 3 of 3

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

Hybrid View

  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, 08:00 AM
  2. The weakest link?
    By Compunuts in forum General Chat
    Replies: 6
    Last Post: 08-22-2004, 05:06 AM
  3. Fun Link
    By paradox in forum General Chat
    Replies: 2
    Last Post: 04-30-2004, 01:33 AM
  4. Sweet Link
    By paradox in forum Linux - General Topics
    Replies: 2
    Last Post: 01-01-2004, 06:47 AM
  5. LInk to another site
    By pbharris in forum Announcements and Suggestions
    Replies: 3
    Last Post: 02-06-2002, 03:23 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
  •