UNIX:两个目录在同一路径上具有相同的名称吗? [英] UNIX:Two directories with same name on the same path?

查看:74
本文介绍了UNIX:两个目录在同一路径上具有相同的名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过一个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:两个目录在同一路径上具有相同的名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆