Figure 1: Linking a file keeps the same inode reference for every link
# ls -l
-rw-rw-rw- 1 student class 104448 Jan 3 1993 karen.db
-rw-rw-rw- 1 student class 98 Mar 9 1993 kristin
-rw-rw-rw- 1 student class 7564 May 5 1994 table
#
# ls -i
2858 karen.db
2865 kristin
1944 testfile
#
# ln karen.db kristin.db
#
# ls -li
2858 -rw-rw-rw- 2 student class 104448 Jan 3 1993 karen.db
2865 -rw-rw-rw- 1 student class 98 Mar 9 1993 kristin
2858 -rw-rw-rw- 2 student class 104448 Jan 3 1993 kristin.db
1944 -rw-rw-rw- 1 student class 7564 May 5 1994 table
#
# ln kristin.db testfile
#
# ls -li
2858 -rw-rw-rw- 3 student class 104448 Jan 3 1993 karen.db
2865 -rw-rw-rw- 1 student class 98 Mar 9 1993 kristin
2858 -rw-rw-rw- 3 student class 104448 Jan 3 1993 kristin.db
1944 -rw-rw-rw- 1 student class 7564 May 5 1994 table
2858 -rw-rw-rw- 3 student class 104448 Jan 3 1993 testfile
#
|