UNIX:两个目录在同一路径上具有相同的名称吗?

编程入门 行业动态 更新时间:2024-10-07 03:27:08
本文介绍了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:两个目录在同一路径上具有相同的名称吗?

本文发布于:2023-11-30 18:32:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651077.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   名称   两个   目录   在同一

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!