是否有一个明确的资源记录了 linux /proc 和 /sys 文件系统的导航?
我们在Linux中使用/proc和/sys文件系统来发现各种类型的系统配置信息。 通常,我们会浏览不同的文件和目录,直到找到所需的信息。
我想知道是否有人知道一个明确的资源,该资源记录了如何浏览 /proc 和 /sys 文件系统以查找特定信息。 我们主要从这些文件系统中的各种文件中获取 USB、PCI 和 SCSI 信息。
谢谢,
We use the /proc and /sys file systems in Linux to discover various types of system configuration information. Typically, we spelunk around through the different files and directories until we find the information that we need.
I'm wondering if anyone knows of a definitive resource that documents how one would navigate through the /proc and /sys file systems to locate specific information. We primarily grab USB, PCI and SCSI information from various files in these file systems.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/sys
的权威资源是 Documentation/sysfs-rules.txt。/proc/sys
的权威资源是 文档/sysctl/。/proc
其余部分的权威资源似乎是 文档/filesystems/proc.txt。 Linux 内核源代码中的Documentation/
目录的其余部分还有其他有趣的信息。 特别是 Documentation/ABI/提到了各个接口的稳定性。The definitive resource for
/sys
is Documentation/sysfs-rules.txt. The definitive resource for/proc/sys
is Documentation/sysctl/. The definitive resource for the rest of/proc
appears to be Documentation/filesystems/proc.txt. The rest of theDocumentation/
directory in the Linux kernel source has other interesting information. In particular, Documentation/ABI/ mentions the stability of each interface.