Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 git 文档(如 git-checkout-index http://linux.die.net/man/1/git-checkout-index)中,索引文件中有对“统计信息”的引用。这个神秘的“统计信息”是什么?
这是将返回的信息stat()- 特别是文件权限,因为这是实际跟踪的内容。(其他信息包括时间戳、文件大小、用户/组所有者和 inode。)
stat()
还有一个命令行程序stat,它本质上是该系统调用的包装器;尝试一下stat <file>,您会看到所有这些信息。
stat
stat <file>