什么是路径,它与有何不同

什么是路径,它与有何不同,第1张

什么是路径//,它与/有何不同

从Bash常见问题解答

E10) Why does `cd //' leave $PWD as `//'?POSIX.2, in its description of `cd', says that *three* or more leadingslashes may be replaced with a single slash when canonicalizing thecurrent working directory.This is, I presume, for historical compatibility.  Certain versions ofUnix, and early network file systems, used paths of the form//hostname/path to access `path' on server `hostname'.


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5046446.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存