当前位置: 技术问答>linux和unix
哪位linux高手帮我看看下面有关inode的问题,谢谢。
来源: 互联网 发布时间:2016-11-02
本文导语: 书上说ext2 或ext3文件系统给每个目录或文件分配一个inode,可是在下面的根目录()下查看到的却有好几个目录录共用一个inode号,如1号与2号,请问这是为什么?????? [root@localhost /]# ls -li total 120 248001 drwx...
书上说ext2 或ext3文件系统给每个目录或文件分配一个inode,可是在下面的根目录()下查看到的却有好几个目录录共用一个inode号,如1号与2号,请问这是为什么??????
[root@localhost /]# ls -li
total 120
248001 drwxr-xr-x 2 root root 4096 2011-01-05 15:02 bin
32001 drwxr-xr-x 4 root root 4096 2010-12-19 22:56 boot
206 drwxr-xr-x 12 root root 4360 2011-01-05 14:59 dev
64001 drwxr-xr-x 129 root root 12288 2011-01-05 15:37 etc
2 drwxr-xr-x 6 root root 4096 2011-01-05 16:03 home
168001 drwxr-xr-x 15 root root 12288 2010-12-23 20:25 lib
11 drwx------ 2 root root 16384 2010-12-19 22:32 lost+found
264001 drwxr-xr-x 3 root root 4096 2011-01-05 13:46 media
40001 drwxrwxrwx 3 root root 4096 2010-12-19 00:56 mnt
2 drwxr-xr-x 4 root root 4096 2011-01-04 15:35 opt
1 dr-xr-xr-x 155 root root 0 2011-01-05 13:43 proc
144001 drwxr-x--- 30 root root 4096 2011-01-05 19:33 root
232001 drwxr-xr-x 2 root root 12288 2011-01-05 15:02 sbin
1 drwxr-xr-x 7 root root 0 2011-01-05 13:43 selinux
80001 drwxr-xr-x 2 root root 4096 2008-04-08 05:44 srv
1 drwxr-xr-x 11 root root 0 2011-01-05 13:43 sys
2 drwxrwxrwt 28 root root 4096 2011-01-05 15:36 tmp
2 drwxr-xr-x 14 root root 4096 2010-12-19 23:56 usr
2 drwxr-xr-x 25 root root 4096 2010-12-19 23:21 var
24003 -rw-rw-rw- 1 root root 0 2010-12-21 13:32 新建 文本文档.txt~
[root@localhost /]#
[root@localhost /]# ls -li
total 120
248001 drwxr-xr-x 2 root root 4096 2011-01-05 15:02 bin
32001 drwxr-xr-x 4 root root 4096 2010-12-19 22:56 boot
206 drwxr-xr-x 12 root root 4360 2011-01-05 14:59 dev
64001 drwxr-xr-x 129 root root 12288 2011-01-05 15:37 etc
2 drwxr-xr-x 6 root root 4096 2011-01-05 16:03 home
168001 drwxr-xr-x 15 root root 12288 2010-12-23 20:25 lib
11 drwx------ 2 root root 16384 2010-12-19 22:32 lost+found
264001 drwxr-xr-x 3 root root 4096 2011-01-05 13:46 media
40001 drwxrwxrwx 3 root root 4096 2010-12-19 00:56 mnt
2 drwxr-xr-x 4 root root 4096 2011-01-04 15:35 opt
1 dr-xr-xr-x 155 root root 0 2011-01-05 13:43 proc
144001 drwxr-x--- 30 root root 4096 2011-01-05 19:33 root
232001 drwxr-xr-x 2 root root 12288 2011-01-05 15:02 sbin
1 drwxr-xr-x 7 root root 0 2011-01-05 13:43 selinux
80001 drwxr-xr-x 2 root root 4096 2008-04-08 05:44 srv
1 drwxr-xr-x 11 root root 0 2011-01-05 13:43 sys
2 drwxrwxrwt 28 root root 4096 2011-01-05 15:36 tmp
2 drwxr-xr-x 14 root root 4096 2010-12-19 23:56 usr
2 drwxr-xr-x 25 root root 4096 2010-12-19 23:21 var
24003 -rw-rw-rw- 1 root root 0 2010-12-21 13:32 新建 文本文档.txt~
[root@localhost /]#
|
错了.. 那都是目录~ 不会有硬链接的...
|
好奇怪啊/
|
有高手帮解决下这个问题不..
对于目录项 第一个参数是啥意义呢?
对于目录项 第一个参数是啥意义呢?
|
知道了...
inode是唯一的..
他们压根就不在一个文件系统...
inode是唯一的..
他们压根就不在一个文件系统...