LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: pluskid

我想请问一下关于目录的名字

[复制链接]
发表于 2006-1-16 10:57:35 | 显示全部楼层
Post by 终极幻想
目录,应该是

/MyDIR
或者
/MyDIR/.

这2个才是正确的表达。



你的目录都在根下吗?你这种说法真的让人很困惑~~
回复 支持 反对

使用道具 举报

发表于 2006-1-16 12:48:35 | 显示全部楼层
用 /MyDIR 只是举例而已。又比如:./boot 和 ./boot/.
回复 支持 反对

使用道具 举报

发表于 2006-1-16 14:58:20 | 显示全部楼层
不解,轻深入讲解下~~~
回复 支持 反对

使用道具 举报

发表于 2006-1-16 23:23:17 | 显示全部楼层
文件路径就像url,真的存在和url一样名字的文件吗?
只不过按照这个途径访问它而已。
就像北京->海淀->清华。名字就是名字,只不过符号表示他们的关系而已!
但是这种方法要两个字符,所以每个系统都选择了一个字符的表示方法Unix用`/',DOS用`\'。
还有就是中文中的引号,“”。大家都知道“文字”是表示文字,而两个引号则不表示意思。
回复 支持 反对

使用道具 举报

发表于 2006-1-16 23:26:32 | 显示全部楼层
Post by yongjian
  1. ls -Fp
复制代码
will show the characteristics. If its a dir, then a "/" will be tailed. In old Unix systems, you wouldn't tell the difference b/w dirs and files by just ls cause they have literally the same color and no type indications.


that's why the ls -F alias failed a lot of sripts,and cmdline pipes.
回复 支持 反对

使用道具 举报

发表于 2006-1-17 03:55:11 | 显示全部楼层
Post by gnap
that's why the ls -F alias failed a lot of sripts,and cmdline pipes.

I don't think so, even you do "dir//" or more "/", it doesn't matter. "/" after dir doesn't affect scripting.
回复 支持 反对

使用道具 举报

发表于 2006-1-17 09:30:48 | 显示全部楼层
i agree with the master~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表