是否有一个明确的资源记录了 linux /proc 和 /sys 文件系统的导航?

发布于 2024-07-26 02:37:33 字数 198 浏览 24 评论 0原文

我们在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2024-08-02 02:37:34

/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 the Documentation/ directory in the Linux kernel source has other interesting information. In particular, Documentation/ABI/ mentions the stability of each interface.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文