Unix和Linux真实文件中的'dot'和'dot dot'文件是什么? [英] Are the ‘dot’ and ‘dot dot’ files in Unix and Linux real files?

查看:179
本文介绍了Unix和Linux真实文件中的'dot'和'dot dot'文件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

特殊文件 .. 是否真实存在,并且正常存储/位于文件系统中文件,还是只有在文件系统处理程序访问时才解释/创建?

Do the special files . and .. actually exist and are stored/located in the file system as normal files, or are they interpreted/created only when accessed by the filesystem handlers?


  • (当前目录)
  • .. (父目录)
  • . (current directory)
  • .. (parent directory)

我的假设是它们不存在 - 否则,当你创建符号链接或者绑定坐标时,事情就会中断。

My assumption is that they do not exist – otherwise, when you create symlinks or bind mounts, things would break.

推荐答案

你的假设是正确的。这些文件仅仅作为一个抽象层来导航和描述一个资源位置。

You are correct in your assumption. These files are merely there as an abstraction layer to navigate to and describe a resources location..

这篇关于Unix和Linux真实文件中的'dot'和'dot dot'文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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