[root@odax52iscdb01 skel]# ls -li abc
1474565 -rw-r--r-- 1 root root 0 Nov 14 12:25 abc <<<<<< inode number (first) and hard link count (1)
[root@odax52iscdb01 skel]# ln abc def <<<<<< hard link
[root@odax52iscdb01 skel]# ls -li abc def
1474565 -rw-r--r-- 2 root root 0 Nov 14 12:25 abc <<<<
1474565 -rw-r--r-- 2 root root 0 Nov 14 12:25 def <<<< same inode number, hard link count (2)
[root@odax52iscdb01 skel]# ln -s abc ghi <<<< soft link
[root@odax52iscdb01 skel]# ls -li abc def ghi
1474565 -rw-r--r-- 2 root root 0 Nov 14 12:25 abc
1474565 -rw-r--r-- 2 root root 0 Nov 14 12:25 def
1474572 lrwxrwxrwx 1 root root 3 Nov 14 12:28 ghi -> abc <<<<<<< different inode
No comments:
Post a Comment