当我通过一个unix系统时,当我执行ls -Dl
While I was going through a unix system I found Five, two directories with same name listed on the same path, when I did a ls -Dl
这里是视图,为什么我说五个,两个目录同名.....
Here is the view, Why I said Five, Two Directories with same name.....
//11/# ls -Dl total 553 drwxrwxr-x 2 root root 12288 Dec 20 2010 bin drwxrwxr-x 2 root root 16384 Sep 28 2010 bin drwxrwxr-x 11 root root 4096 Oct 25 06:49 etc drwxrwxr-x 11 root root 8192 May 17 07:40 etc drwxrwxr-x 3 root root 4096 Sep 28 2010 qnx4 drwxrwxr-x 4 root root 4096 Jul 26 2010 qnx4 drwxrwxr-- 4 root root 4096 Sep 28 2010 registry drwxrwxr-x 4 root root 4096 Aug 31 2008 registry drwxrwxr-x 16 root root 4096 Sep 28 2010 usr drwxrwxr-x 17 root root 4096 May 27 03:49 usr这怎么可能?如果我将其中任何一个cd会发生什么,我将进入哪个目录?
How can this be possible?? what will happen if I cd any one of them, which directory i'll end up in??
还有另一种查看方式,当我执行ls -liF时,此处列出的目录包含不同的inode.甚至都不是符号链接或其他任何东西.
There is another way of looking at it, when I did ls -liF the directories listed here came up with different inodes. and were not even symbolic links or anything.???
请向我解释一下?
推荐答案使用ls -b,如果您发现在文件夹或文件后附加任何"\",则应为空格.
use ls -b, if you found any "\" appended after your folders or files, that should be spaces.
更多推荐
UNIX:两个目录在同一路径上具有相同的名称吗?
发布评论